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() + ")");