Package com.clearnlp.segmentation

Examples of com.clearnlp.segmentation.EnglishSegmenter


  // ============================= getter: sentence segmenter =============================
 
  static public AbstractSegmenter getSegmenter(String language, AbstractTokenizer tokenizer)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return new EnglishSegmenter(tokenizer);
   
    throw new IllegalArgumentException("The requested language '"+language+"' is not currently supported.");
  }
View Full Code Here


  // ============================= getter: sentence segmenter =============================
 
  static public AbstractSegmenter getSegmenter(String language, AbstractTokenizer tokenizer)
  {
    if (language.equals(AbstractReader.LANG_EN))
      return new EnglishSegmenter(tokenizer);
   
    throw new IllegalArgumentException("The requested language '"+language+"' is not currently supported.");
  }
View Full Code Here

TOP

Related Classes of com.clearnlp.segmentation.EnglishSegmenter

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.