jvntextpro.data
Class Sentence

java.lang.Object
  extended by jvntextpro.data.Sentence

public class Sentence
extends java.lang.Object

The Class Sentence.


Constructor Summary
Sentence()
          Instantiates a new sentence.
 
Method Summary
 void addTWord(java.lang.String word)
          Adds the t word.
 void addTWord(java.lang.String word, java.lang.String tag)
          Adds the t word.
 void addTWord(TWord tword)
          Adds the t word.
 void clear()
          Clear.
 java.lang.String getTagAt(int pos)
          Gets the tag at.
 TWord getTWordAt(int pos)
          Gets the t word at.
 java.lang.String getWordAt(int pos)
          Gets the word at.
 void print()
          Prints the.
 void print(java.io.Writer out)
          Prints the.
 int size()
          Size.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sentence

public Sentence()
Instantiates a new sentence.

Method Detail

addTWord

public void addTWord(TWord tword)
Adds the t word.

Parameters:
tword - the tword

addTWord

public void addTWord(java.lang.String word,
                     java.lang.String tag)
Adds the t word.

Parameters:
word - the word
tag - the tag

addTWord

public void addTWord(java.lang.String word)
Adds the t word.

Parameters:
word - the word

getWordAt

public java.lang.String getWordAt(int pos)
Gets the word at.

Parameters:
pos - the pos
Returns:
the word at

getTagAt

public java.lang.String getTagAt(int pos)
Gets the tag at.

Parameters:
pos - the pos
Returns:
the tag at

getTWordAt

public TWord getTWordAt(int pos)
Gets the t word at.

Parameters:
pos - the pos
Returns:
the t word at

clear

public void clear()
Clear.


size

public int size()
Size.

Returns:
the int

print

public void print()
Prints the.


print

public void print(java.io.Writer out)
           throws java.io.IOException
Prints the.

Parameters:
out - the out
Throws:
java.io.IOException - Signals that an I/O exception has occurred.