All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.nlp.process.WordSegmenter Maven / Gradle / Ivy

package edu.stanford.nlp.process;

import java.io.Serializable;
import java.util.List;
import java.util.Collection;

import edu.stanford.nlp.ling.HasWord;
import edu.stanford.nlp.ling.TaggedWord;
import edu.stanford.nlp.trees.Tree;

/** An interface for segmenting strings into words
 *  (in unwordsegmented languages).
 *
 *  @author Galen Andrew
 */
public interface WordSegmenter extends Serializable {

  void initializeTraining(double numTrees);

  void train(Collection trees);

  void train(Tree trees);

  void train(List sentence);

  void finishTraining();

  void loadSegmenter(String filename);

  List segment(String s);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy