org.jscience.linguistics
Class Sentence

java.lang.Object
  extended by org.jscience.linguistics.Sentence

public class Sentence
extends java.lang.Object

The Sentence class corresponds to the common sense sentence. In English a sentence starts with an uppercase and ends with a period.


Field Summary
static int COMPLEX_SENTENCE
          DOCUMENT ME!
static int COMPOUND_COMPLEX_SENTENCE
          DOCUMENT ME!
static int COMPOUND_SENTENCE
          DOCUMENT ME!
static int DECLARATIVE_SENTENCE
          DOCUMENT ME!
static int EXCLAMATORY_SENTENCE
          DOCUMENT ME!
static int IMPERATIVE_SENTENCE
          DOCUMENT ME!
static int INTERROGATIVE_SENTENCE
          DOCUMENT ME!
static int RHETORICAL_QUESTIONS
          DOCUMENT ME!
static int SIMPLE_SENTENCE
          DOCUMENT ME!
static int UNKNOWN
          DOCUMENT ME!
 
Constructor Summary
Sentence()
          Creates a new Sentence object.
Sentence(java.util.Vector phrases)
          Creates a new Sentence object.
 
Method Summary
 java.util.Vector getPhrases()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
DOCUMENT ME!

See Also:
Constant Field Values

SIMPLE_SENTENCE

public static final int SIMPLE_SENTENCE
DOCUMENT ME!

See Also:
Constant Field Values

COMPOUND_SENTENCE

public static final int COMPOUND_SENTENCE
DOCUMENT ME!

See Also:
Constant Field Values

COMPLEX_SENTENCE

public static final int COMPLEX_SENTENCE
DOCUMENT ME!

See Also:
Constant Field Values

COMPOUND_COMPLEX_SENTENCE

public static final int COMPOUND_COMPLEX_SENTENCE
DOCUMENT ME!

See Also:
Constant Field Values

DECLARATIVE_SENTENCE

public static final int DECLARATIVE_SENTENCE
DOCUMENT ME!

See Also:
Constant Field Values

INTERROGATIVE_SENTENCE

public static final int INTERROGATIVE_SENTENCE
DOCUMENT ME!

See Also:
Constant Field Values

RHETORICAL_QUESTIONS

public static final int RHETORICAL_QUESTIONS
DOCUMENT ME!

See Also:
Constant Field Values

EXCLAMATORY_SENTENCE

public static final int EXCLAMATORY_SENTENCE
DOCUMENT ME!

See Also:
Constant Field Values

IMPERATIVE_SENTENCE

public static final int IMPERATIVE_SENTENCE
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

Sentence

public Sentence()
Creates a new Sentence object.


Sentence

public Sentence(java.util.Vector phrases)
Creates a new Sentence object.

Parameters:
phrases - DOCUMENT ME!
Method Detail

getPhrases

public java.util.Vector getPhrases()
DOCUMENT ME!

Returns:
DOCUMENT ME!