Fido Alpha 3.2

fido.linguistic
Class SentenceComponents

java.lang.Object
  |
  +--fido.linguistic.SentenceComponents

public class SentenceComponents
extends java.lang.Object

This module will take the Grammar linkages from the Grammar module and place them into in internal class structure. This is the translation from the syntactic form of the sentence to an internal semantic view.

See Also:
Grammar

Constructor Summary
SentenceComponents()
          Creates a new SentenceComponents instance.
 
Method Summary
 java.util.Vector translate(java.util.Vector sentences)
          Converts the Vector of Link classes from Grammar to an internal structure that represents the sentence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SentenceComponents

public SentenceComponents()
Creates a new SentenceComponents instance.

Method Detail

translate

public java.util.Vector translate(java.util.Vector sentences)
                           throws FidoException
Converts the Vector of Link classes from Grammar to an internal structure that represents the sentence. The internal structure holds the noun phrases (subject, direct and indirect objects) as well as verb information. Prepositional phrases are attached to the appropriate class.

Parameters:
sentences - Vector of Vectors each containing one valid linkage. The second Vector contains a list of Link classes, realized from the Grammar module.
Returns:
A Vector of Clauses, each containing the semantic structure for each valid linkage passed in.
Throws:
FidoException - General exception thrown if the linkage could not be processed. The exception will contain a wrapped exception that is the root cause.
See Also:
Clause

Fido Alpha 3.2