jvnsegmenter
Class WordDataReader

java.lang.Object
  extended by jvntextpro.data.DataReader
      extended by jvnsegmenter.WordDataReader

public class WordDataReader
extends DataReader

The Class WordDataReader.


Constructor Summary
WordDataReader()
          Instantiates a new word data reader.
WordDataReader(boolean isTrainReading)
          Instantiates a new word data reader.
 
Method Summary
 java.util.List<Sentence> readFile(java.lang.String datafile)
          Read file.
 java.util.List<Sentence> readString(java.lang.String dataStr)
          Read string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordDataReader

public WordDataReader()
Instantiates a new word data reader.


WordDataReader

public WordDataReader(boolean isTrainReading)
Instantiates a new word data reader.

Parameters:
isTrainReading - the is train reading
Method Detail

readFile

public java.util.List<Sentence> readFile(java.lang.String datafile)
Description copied from class: DataReader
Read file.

Specified by:
readFile in class DataReader
Parameters:
datafile - the datafile
Returns:
the list

readString

public java.util.List<Sentence> readString(java.lang.String dataStr)
Description copied from class: DataReader
Read string.

Specified by:
readString in class DataReader
Parameters:
dataStr - the data str
Returns:
the list