|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.international.arabic.process.ArabicDocumentReaderAndWriter
public class ArabicDocumentReaderAndWriter
Reads newline delimited UTF-8 Arabic sentences with or without gold segmentation markers. When segmentation markers are present, this class may be used for
| Constructor Summary | |
|---|---|
ArabicDocumentReaderAndWriter(boolean hasSegMarkers)
|
|
ArabicDocumentReaderAndWriter(boolean hasSegMarkers,
boolean hasTags,
TokenizerFactory<CoreLabel> tokFactory)
|
|
ArabicDocumentReaderAndWriter(boolean hasSegMarkers,
TokenizerFactory<CoreLabel> tokFactory)
|
|
| Method Summary | |
|---|---|
java.util.Iterator<java.util.List<CoreLabel>> |
getIterator(java.io.Reader r)
Iterate over an input document. |
void |
init(SeqClassifierFlags flags)
Required, but unused. |
void |
printAnswers(java.util.List<CoreLabel> doc,
java.io.PrintWriter pw)
This method prints the output of the classifier to a PrintWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArabicDocumentReaderAndWriter(boolean hasSegMarkers)
hasSegMarkers - if true, input has segmentation markers
public ArabicDocumentReaderAndWriter(boolean hasSegMarkers,
TokenizerFactory<CoreLabel> tokFactory)
hasSegMarkers - if true, input has segmentation markerstokFactory - a TokenizerFactory for the input
public ArabicDocumentReaderAndWriter(boolean hasSegMarkers,
boolean hasTags,
TokenizerFactory<CoreLabel> tokFactory)
hasSegMarkers - if true, input has segmentation markershasTags - if true, input has morphological analyses separated by tagDelimiter.tokFactory - a TokenizerFactory for the input| Method Detail |
|---|
public void init(SeqClassifierFlags flags)
init in interface DocumentReaderAndWriter<CoreLabel>flags - Flags specifying behaviorpublic java.util.Iterator<java.util.List<CoreLabel>> getIterator(java.io.Reader r)
getIterator in interface IteratorFromReaderFactory<java.util.List<CoreLabel>>r - Where to read objects from
public void printAnswers(java.util.List<CoreLabel> doc,
java.io.PrintWriter pw)
DocumentReaderAndWriterPrintWriter.
printAnswers in interface DocumentReaderAndWriter<CoreLabel>doc - The document which has answers (it has been classified)pw - Where to send the output
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||