Package edu.stanford.nlp.sequences

Examples of edu.stanford.nlp.sequences.ColumnTabDocumentReaderWriter


    { "PERSON", "O", "O", "O", "O", "O" }
  };

  private static Iterator<Annotation> getTestData(String inputString, boolean includeAnswer)
  {
    ColumnTabDocumentReaderWriter colReader = new ColumnTabDocumentReaderWriter();
    if (includeAnswer) {
      colReader.init("word=0,tag=1,answer=2");
    } else {
      colReader.init("word=0,tag=1");
    }
    StringReader strReader = new StringReader(inputString);
    return colReader.getDocIterator(strReader);
  }
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.sequences.ColumnTabDocumentReaderWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.