Java Code Examples for edu.stanford.nlp.process.PTBTokenizer#coreLabelFactory()

The following examples show how to use edu.stanford.nlp.process.PTBTokenizer#coreLabelFactory() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GermanPreprocessor.java    From phrasal with GNU General Public License v3.0 4 votes vote down vote up
public GermanPreprocessor(boolean cased, MosesCompoundSplitter compoundSplitter) {
  super(PTBTokenizer.coreLabelFactory(), compoundSplitter);
  tf.setOptions("invertible=true,ptb3Escaping=false,asciiQuotes=true,untokenizable=allKeep");
  this.cased = cased;
}
 
Example 2
Source File: EnglishPreprocessor.java    From phrasal with GNU General Public License v3.0 4 votes vote down vote up
public EnglishPreprocessor(boolean cased) {
  super(PTBTokenizer.coreLabelFactory());
  tf.setOptions("invertible=true,ptb3Escaping=false,asciiQuotes=true,splitAssimilations=false,untokenizable=allKeep");
  this.cased = cased;
}