|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fido.linguistic.PronounResolver
The PronounResolver classes works with the Discourse class to retrive nouns from the current discourse. A pronoun has the following attributes: gender, person, and plural. The Discourse class stores ResolvedNoun classes for each of the types of pronouns. If a type of pronoun is requested, but the Discourse does not have an antecedent for that type, the pronoun cannot be resolved and should produce an error condition. If a match is found, the Pronoun class should be replaced with the ResolvedNoun class in the sentence structure.
Certain pronouns cannot be dereferenced by gender only, some will need semantic context.
Pronoun Antecedent replaces either nouns or sentence fragments from the previous sentence into the current sentence. Most of the time it will be nouns, but certain sentences, such as "do it again", it will be replaced with the action from the previous sentence. This module will be first because to resolve to any nouns so ellipsis sentence structure can identify all parts of the sentence. This will only replace noun pronouns. Verb pronouns will be replaced by the ellipsis module.
First must determine how words are stored in the database. The two thoughts are all in one hierarchy or each part of speech have its own class in the dataserver. Either way, links names are not enough to identify when a word is a preposition.
Once a word has been identified as a pronoun, there will be two types: possessive and not possessive. The possessive pronouns will be adjectives helping resolve noun phrases. Non possessive pronouns are used to substitute for another word previously in discourse.
Morphology Changes
Morphology will have to change the surface pronoun (one of the above italicized pronouns in the table) to a base pronoun.
Pronoun Class
The pronoun class will contain two tables. One for the discourse variable that the pronoun refers to (only for normal pronouns, not possessives)
Inter-sentence Pronouns
In the following sentence: Open the door and walk through it. The it refers to the opening made by the door, which is in the same sentence. Also, there can be relative clauses at the beginning of the sentence that may either 1. contain a pronoun that is defined in the main clause, or 2. define a noun that the main clause uses a pronoun to reference.
The storm blew the old oak down.. The following it will have different meanings:
When noun centering fails:
Centering Constraint 1 -- If any object
in the local context is referred to by a pronoun in the current
sentence, then the center of that sentence must also be
pronominalized.
Centering Constraint 2 -- The center must
be the most preferred discourse entity in the local context that is
referred to by a pronoun.
Centering Constraint 3 -- Continuing with
the same center from one sentence to the next is preferred over
changing the center.
Reflexive Pronouns
Reflexive - John shaves himself.
Reciprocals - The men talked to each other.
Idioms - I lost my way.
Wh-antecedents - Who thinks he has been cheated.
Quantified - Everyone said he was tired.
Epithats - He stepped on my foot, the creep.
Surface Anaphora (Anaphora means antecedent)
Transferring knowledge from one sentence to another by knowing how objects relate to one another.
For the Action class, have expected results as well as side effects: Example: for the verb remove, the Unix command would be "rm", the expected result would be the file is removed, and the side effect would be the disk space used would go down.
Also, each verb should have a list of actions that need to performed before the action:
Another example:
Also, have exception handing if any of the steps cannot be performed. Instead of checking for executable permission before running every binary or script, have an exception that will trigger if over an exe cannot be run because of a certain message being returned.
Discourse
Constructor Summary | |
PronounResolver(Discourse discourse)
Creates a new PronounResolver instance. |
Method Summary | |
ResolvedNoun |
resolve(Pronoun pronoun)
Finds the antecedant of the pronoun in the Discourse class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PronounResolver(Discourse discourse)
discourse
- Discourse object used in resolving pronounsMethod Detail |
public ResolvedNoun resolve(Pronoun pronoun) throws FidoException
pronoun
- Pronoun to resolve
FidoException
- Thrown if the parameters in the Pronoun class
are out of range, such as fourth person.
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |