Created
September 3, 2014 22:49
-
-
Save agibsonccc/ef873b33ebda053b9d56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Creates a tokenization,/stemming pipeline | |
* @return a tokenization/stemming pipeline | |
*/ | |
public static AnalysisEngine defaultAnalysisEngine() { | |
try { | |
return AnalysisEngineFactory.createEngine(AnalysisEngineFactory.createEngineDescription( | |
SentenceAnnotator.getDescription(), | |
TokenizerAnnotator.getDescription())); | |
}catch(Exception e) { | |
throw new RuntimeException(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment