Package org.apache.uima.cas.text

Examples of org.apache.uima.cas.text.Language


  public void process(JCas aJCas) throws AnalysisEngineProcessException {

    this.logger.log(Level.INFO, "Snowball annotator starts processing");

    // get get stemmer for the document language
    String language = new Language(aJCas.getDocumentLanguage()).getLanguagePart();

    SnowballProgram stemmer = this.stemmers.get(language);

    // create stemms if stemmer for the current document language is available
    if (stemmer != null) {
View Full Code Here


  public void process(JCas aJCas, ResultSpecification aResultSpec) throws AnnotatorProcessException {

    this.logger.log(Level.INFO, "Snowball annotator starts processing");

    // get get stemmer for the document language
    String language = new Language(aJCas.getDocumentLanguage()).getLanguagePart();
    SnowballProgram stemmer = (SnowballProgram) this.stemmers.get(language);

    // create stemms if stemmer for the current document language is available
    if (stemmer != null) {
View Full Code Here

TOP

Related Classes of org.apache.uima.cas.text.Language

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.