Package nlp.public_domain

Examples of nlp.public_domain.Stemmer


  public ComparableDocument(File document) throws FileNotFoundException {
    this(new Scanner(document).useDelimiter("\\Z").next());
  }
  public ComparableDocument(String text) {
    // System.out.println("text:\n\n" + text + "\n\n");
    List<String> stems = new Stemmer().stemString(text);
    for (String stem : stems) {
      if (!NoiseWords.checkFor(stem)) {
        stem_count++;
        if (stemCountMap.containsKey(stem)) {
          Integer count = stemCountMap.get(stem);
View Full Code Here


     *
     * @param text input text processed to identify categories
     * @return
     */
    private List<SFtriple> getTagsHelper(String text) {
        Stemmer stemmer = new Stemmer();
        List<String> stems = stemmer.stemString(text);
        return getTagsHelper(stems);
    }
View Full Code Here

     *
     * @param text
     * @return
     */
    float[] getWordImportanceWeights(String text) {
        List<String> stems = new Stemmer().stemString(text);
        List<SFtriple> best_tags = getTagsHelper(stems);
        return getWordImportanceWeights(stems, best_tags);
    }
View Full Code Here

TOP

Related Classes of nlp.public_domain.Stemmer

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.