Package opennlp.tools.doccat

Examples of opennlp.tools.doccat.DocumentSample


      count++;
    }


    if (sampleText.length() > 0) {
      return new DocumentSample(language, sampleText.toString());
    }

    return null;
  }
View Full Code Here


      AnnotationFS categoryAnnotation  =
          (AnnotationFS) categoryIndex.iterator().next();

      // add to event collection

      DocumentSample sample = new DocumentSample(
        categoryAnnotation.getStringValue(mCategoryFeature),
        cas.getDocumentText());

      documentSamples.add(sample);
    }
View Full Code Here

      count++;
    }

   
    if (sampleText.length() > 0) {
      return new DocumentSample(language, sampleText.toString());
    }
 
    return null;
  }
View Full Code Here

TOP

Related Classes of opennlp.tools.doccat.DocumentSample

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.