Package asta.model

Examples of asta.model.TextMetaData


   */
  @Override
  public void finish(TextProcessFinishEvent evt) {
   
    int i = 0;
    TextMetaData data = evt.getMetaData();
   
    for(String s: data.getWordsByFrequency()) {
     
      System.out.print(String.format("\n%d. %s (%d)", ++i,
          s, data.getFrequencyOfWord(s)));
    }
   
    System.out.println(String.format("\nSum(Words): %d, Sum(Chars): %d",
        data.getNumberOfWords(), data.getNumberOfCharacters()));
  }
View Full Code Here

TOP

Related Classes of asta.model.TextMetaData

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.