edu.stanford.nlp.trees
Class EnglishGrammaticalRelations

java.lang.Object
  extended by edu.stanford.nlp.trees.EnglishGrammaticalRelations

public class EnglishGrammaticalRelations
extends Object

EnglishGrammaticalRelations is a set of GrammaticalRelation objects for the English language.

This set of English grammatical relations is not intended to be exhaustive or immutable. It's just where we're at now.

Author:
Bill MacCartney, Galen Andrew (refactoring English-specific stuff)
See Also:
GrammaticalStructure, GrammaticalRelation, EnglishGrammaticalStructure

Field Summary
static GrammaticalRelation ABBREVIATION_MODIFIER
          The "abbreviation appositional modifier" grammatical relation.
static GrammaticalRelation ADJECTIVAL_COMPLEMENT
          The "adjectival complement" grammatical relation.
static GrammaticalRelation ADJECTIVAL_MODIFIER
          The "adjectival modifier" grammatical relation.
static GrammaticalRelation ADVERBIAL_MODIFIER
          The "adverbial modifier" grammatical relation.
static GrammaticalRelation APPOSITIONAL_MODIFIER
          The "appositional modifier" grammatical relation.
static GrammaticalRelation ARGUMENT
          The "argument" grammatical relation.
static GrammaticalRelation AUX_MODIFIER
          The auxiliary grammatical relation.
static GrammaticalRelation CLAUSAL_COMPLEMENT
          The "clausal complement" grammatical relation.
static GrammaticalRelation CLAUSAL_SUBJECT
          The "clausal subject" grammatical relation.
static GrammaticalRelation COMPLEMENT
          The "complement" grammatical relation.
static GrammaticalRelation CONTROLLING_SUBJECT
          The "controlling subject" grammatical relation.
static GrammaticalRelation DETERMINER
          The "determiner" grammatical relation.
static GrammaticalRelation DIRECT_OBJECT
          The "direct object" grammatical relation.
static GrammaticalRelation INDIRECT_OBJECT
          The "indirect object" grammatical relation.
static GrammaticalRelation INFINITIVAL_MODIFIER
          The "infinitval modifier" grammatical relation.
static GrammaticalRelation MODIFIER
          The "modifier" grammatical relation.
static GrammaticalRelation NOMINAL_PASSIVE_SUBJECT
          The "nominal passive subject" grammatical relation.
static GrammaticalRelation NOMINAL_SUBJECT
          The "nominal subject" grammatical relation.
static GrammaticalRelation NOUN_COMPOUND_MODIFIER
          The "noun compound modifier" grammatical relation.
static GrammaticalRelation NUMERIC_MODIFIER
          The "numeric modifier" grammatical relation.
static GrammaticalRelation OBJECT
          The "object" grammatical relation.
static GrammaticalRelation PARTICIPIAL_MODIFIER
          The "participial modifier" grammatical relation.
static GrammaticalRelation PREDICATE
          The "predicate" grammatical relation.
static GrammaticalRelation PREPOSITIONAL_MODIFIER
          The "prepositional modifier" grammatical relation.
static GrammaticalRelation SEMANTIC_DEPENDENT
          The "semantic dependent" grammatical relation has been introduced as a supertype for the controlling subject relation.
static GrammaticalRelation SUBJECT
          The "subject" grammatical relation.
static GrammaticalRelation TEMPORAL_MODIFIER
          The "temporal modifier" grammatical relation.
 
Constructor Summary
EnglishGrammaticalRelations()
           
 
Method Summary
static void main(String[] args)
           
static List<GrammaticalRelation> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREDICATE

public static final GrammaticalRelation PREDICATE
The "predicate" grammatical relation. The predicate of a clause is the main VP of that clause; the predicate of a subject is the predicate of the clause to which the subject belongs.

Example: "Reagan died" → pred(Reagan, died)


AUX_MODIFIER

public static final GrammaticalRelation AUX_MODIFIER
The auxiliary grammatical relation. An auxiliary of a clause is a non-main verb of the clause.

Example: "Reagan has died" → aux(died, has)


ARGUMENT

public static final GrammaticalRelation ARGUMENT
The "argument" grammatical relation. An argument of a VP is a subject or complement of that VP; an argument of a clause is an argument of the VP which is the predicate of that clause.

Example: "Clinton defeated Dole" → arg(defeated, Clinton), arg(defeated, Dole)


SUBJECT

public static final GrammaticalRelation SUBJECT
The "subject" grammatical relation. The subject of a VP is the noun or clause that performs or experiences the VP; the subject of a clause is the subject of the VP which is the predicate of that clause.

Examples: "Clinton defeated Dole" → subj(defeated, Clinton), "What she said is untrue" → subj(is, What she said)


NOMINAL_SUBJECT

public static final GrammaticalRelation NOMINAL_SUBJECT
The "nominal subject" grammatical relation. A nominal subject is a subject which is an noun phrase.

Example: "Clinton defeated Dole" → nsubj(defeated, Clinton),


NOMINAL_PASSIVE_SUBJECT

public static final GrammaticalRelation NOMINAL_PASSIVE_SUBJECT
The "nominal passive subject" grammatical relation. A nominal passive subject is a subject of a passive which is an noun phrase.

Example: "Dole was defeated by Clinton" → nsubjpass(defeated, Dole)


CLAUSAL_SUBJECT

public static final GrammaticalRelation CLAUSAL_SUBJECT
The "clausal subject" grammatical relation. A clausal subject is a subject which is a clause.

Example: "What she said is untrue" → csubj(is, What she said)


COMPLEMENT

public static final GrammaticalRelation COMPLEMENT
The "complement" grammatical relation. A complement of a VP is any object (direct or indirect) of that VP, or a clause or adjectival phrase which functions like an object; a complement of a clause is an complement of the VP which is the predicate of that clause.

Examples: "She gave me a raise" → comp(gave, me), comp(gave, a raise); "I like to swim" → comp(like, to swim)


OBJECT

public static final GrammaticalRelation OBJECT
The "object" grammatical relation. An object of a VP is any direct object or indirect object of that VP; an object of a clause is an object of the VP which is the predicate of that clause.

Examples: "She gave me a raise" → obj(gave, me), obj(gave, raise)


DIRECT_OBJECT

public static final GrammaticalRelation DIRECT_OBJECT
The "direct object" grammatical relation. The direct object of a VP is the noun phrase which is the (accusative) object of the verb; the direct object of a clause is the direct object of the VP which is the predicate of that clause.

Example: "She gave me a raise" → dobj(gave, raise)


INDIRECT_OBJECT

public static final GrammaticalRelation INDIRECT_OBJECT
The "indirect object" grammatical relation. The indirect object of a VP is the noun phrase which is the (dative) object of the verb; the indirect object of a clause is the indirect object of the VP which is the predicate of that clause.

Example: "She gave me a raise" → iobj(gave, me)


CLAUSAL_COMPLEMENT

public static final GrammaticalRelation CLAUSAL_COMPLEMENT
The "clausal complement" grammatical relation. A clausal complement of a VP is a clause which functions like an object of the verb; a clausal complement of a clause is the clausal complement of the VP which is the predicate of that clause.

Example: "I like to swim" → ccomp(like, swim)


ADJECTIVAL_COMPLEMENT

public static final GrammaticalRelation ADJECTIVAL_COMPLEMENT
The "adjectival complement" grammatical relation. An adjectival complement of a VP is a adjectival phrase which functions like an object of the verb; an adjectival complement of a clause is the adjectival complement of the VP which is the predicate of that clause.

Example: "She looks very beautiful" → acomp(looks, very beautiful)


MODIFIER

public static final GrammaticalRelation MODIFIER
The "modifier" grammatical relation. A modifier of a VP is any constituent that serves to modify the meaning of the VP (but is not an ARGUMENT of that VP); a modifier of a clause is an modifier of the VP which is the predicate of that clause.

Examples: "I swam in the pool last night" → mod(swam, in the pool), mod(swam, last night)


TEMPORAL_MODIFIER

public static final GrammaticalRelation TEMPORAL_MODIFIER
The "temporal modifier" grammatical relation. A temporal modifier of a VP is any constituent that serves to modify the meaning of the VP by specifying a time; a temporal modifier of a clause is an temporal modifier of the VP which is the predicate of that clause.

Examples: "I swam in the pool last night" → tmod(swam, last night)


ADJECTIVAL_MODIFIER

public static final GrammaticalRelation ADJECTIVAL_MODIFIER
The "adjectival modifier" grammatical relation. An adjectival modifier of an NP is any adjectival phrase that serves to modify the meaning of the NP.

Examples: "Sam eats red meat" → amod(meat, red)


NUMERIC_MODIFIER

public static final GrammaticalRelation NUMERIC_MODIFIER
The "numeric modifier" grammatical relation. A numeric modifier of an NP is any number phrase that serves to modify the meaning of the NP.

Examples: "Sam eats 3 sheep" → num(sheep, 3)


NOUN_COMPOUND_MODIFIER

public static final GrammaticalRelation NOUN_COMPOUND_MODIFIER
The "noun compound modifier" grammatical relation. A noun compound modifier of an NP is any noun that serves to modify the head noun. Note that this has all nouns modify the rightmost a la Penn headship rules. There is no intelligent noun compound analysis.

Example: "Oil price futures" nn(futures, oil) nn(futures, price)


APPOSITIONAL_MODIFIER

public static final GrammaticalRelation APPOSITIONAL_MODIFIER
The "appositional modifier" grammatical relation. An appositional modifier of an NP is an NP that serves to modify the meaning of the NP.

Examples: "Sam, my brother, eats red meat" → appos(Sam, brother)


ABBREVIATION_MODIFIER

public static final GrammaticalRelation ABBREVIATION_MODIFIER
The "abbreviation appositional modifier" grammatical relation. An abbreviation modifier of an NP is an NP that serves to abbreviate the NP.

Examples: "The Australian Broadcasting Corporation (ABC)" → abbrev(Corporation, ABC)


PARTICIPIAL_MODIFIER

public static final GrammaticalRelation PARTICIPIAL_MODIFIER
The "participial modifier" grammatical relation. A participial modifier of an NP is a VP that serves to modify the meaning of the NP.

Examples: "truffles picked during the spring are tasty" → partmod(truffles, picked)


INFINITIVAL_MODIFIER

public static final GrammaticalRelation INFINITIVAL_MODIFIER
The "infinitval modifier" grammatical relation. A participial modifier of an NP is an S/VP that serves to modify the meaning of the NP.

Examples: "points to establish are ..." → infmod(points, establish)


ADVERBIAL_MODIFIER

public static final GrammaticalRelation ADVERBIAL_MODIFIER
The "adverbial modifier" grammatical relation. An adverbial modifier of a word is an RB or ADVP that serves to modify the meaning of the word.

Examples: "genetically modified food" → advmod(modified, genetically)


DETERMINER

public static final GrammaticalRelation DETERMINER
The "determiner" grammatical relation. We're treating these as a sort of degenerate NP modifier, for now.


PREPOSITIONAL_MODIFIER

public static final GrammaticalRelation PREPOSITIONAL_MODIFIER
The "prepositional modifier" grammatical relation. A prepositional modifier of an NP is any prepositional phrase that serves to modify the meaning of the NP.

Examples: "I saw a cat in a hat" → prep(cat, in)


SEMANTIC_DEPENDENT

public static final GrammaticalRelation SEMANTIC_DEPENDENT
The "semantic dependent" grammatical relation has been introduced as a supertype for the controlling subject relation.


CONTROLLING_SUBJECT

public static final GrammaticalRelation CONTROLLING_SUBJECT
The "controlling subject" grammatical relation.

Examples: "Tom likes to eat fish" → xsubj(eat, Tom)

Constructor Detail

EnglishGrammaticalRelations

public EnglishGrammaticalRelations()
Method Detail

values

public static List<GrammaticalRelation> values()

main

public static void main(String[] args)


Stanford NLP Group