Examples of KeaKeyphraseExtractorAPI


Examples of com.gossinteractive.kea.KeaKeyphraseExtractorAPI

    try {

      String text = intext.text();
      List<SurfaceFormOccurrence> ret = null;
      //Extracting keyphrase spots
      KeaKeyphraseExtractorAPI kmb = new KeaKeyphraseExtractorAPI(keamodelfile,nofPhrases );

            //TODO add configuration parameters to set number of keyphrases or minimum cutoff
      List<KeyPhrase> keaPhrases = kmb.extractKeyphrases3(text, cutoff); //extracts phrases with weight > cutoff
      //List<KeyPhrase> keaPhrases = kmb.extractKeyphrases3(text, nofPhrases); //extracts a given no. of phrases
     
            //System.out.println("\n\nNo of Kea Keyphrases extracted: " + keaPhrases.size());
      for( KeyPhrase kp: keaPhrases) {
        //System.out.println("KP: " + kp.getPhrase() + " ( Weight: " + kp.getWeight() + " Rank: " + kp.getRank() + ")");
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.