Examples of DocumentSample


Examples of opennlp.tools.doccat.DocumentSample

      count++;
    }


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

    return null;
  }
View Full Code Here

Examples of opennlp.tools.doccat.DocumentSample

      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

Examples of opennlp.tools.doccat.DocumentSample

      count++;
    }

   
    if (sampleText.length() > 0) {
      return new DocumentSample(language, sampleText.toString());
    }
 
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.