Examples of StopwordsEnglish


Examples of com.openkm.kea.stopwords.StopwordsEnglish

      log.info("Building model with options: ");
      String[] optionSettings = kmb.getOptions();
      for (int i = 0; i < optionSettings.length; i++) {
        log.info(optionSettings[i] + " ");
      }
      kmb.buildModel(kmb.collectStems(), new StopwordsEnglish());
      kmb.saveModel();
    } catch (Exception e) {
      e.printStackTrace();
      log.error(e.getMessage());
      log.error("\nOptions:\n");
View Full Code Here

Examples of com.openkm.kea.stopwords.StopwordsEnglish

  /**
   * The main method.
   */
  public static void main(String[] ops) {
    KEAKeyphraseExtractor kmb = new KEAKeyphraseExtractor(new StopwordsEnglish());
   
    try {
      // Checking and Setting Options selected by the user:
      kmb.setOptions(ops);
      log.info("Extracting keyphrases with options: ");
View Full Code Here

Examples of kea.stopwords.StopwordsEnglish

    // Stemmer -- adjust if you use a different language than English or want to alterate results
    // (We have obtained better results for Spanish and French with NoStemmer)
    ke.setStemmer(new PorterStemmer());
   
    // Stopwords
    ke.setStopwords(new StopwordsEnglish());

    // Number of Keyphrases to extract
    ke.setNumPhrases(5);
   
    // Set to true, if you want to compute global dictionaries from the test collection
View Full Code Here

Examples of maui.stopwords.StopwordsEnglish

   * @throws Exception
   */
  private void setGeneralOptions()  {
    modelBuilder.setDebug(true);
    modelBuilder.setStemmer(new PorterStemmer());
    modelBuilder.setStopwords(new StopwordsEnglish());
    modelBuilder.setDocumentLanguage("en");
    modelBuilder.setMaxPhraseLength(5);
    modelBuilder.setWikipedia(wikipedia);
   
    topicExtractor.setDebug(true);
    topicExtractor.setStemmer(new PorterStemmer());
    topicExtractor.setStopwords(new StopwordsEnglish());
    topicExtractor.setDocumentLanguage("en");
    topicExtractor.setNumTopics(10);
    topicExtractor.setWikipedia(wikipedia);
  }
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.