Package org.corrib.jonto.wordnet

Examples of org.corrib.jonto.wordnet.WordSense


            JSONObject wordNetConcept = new JSONObject();
            wordNetConcept.put("uri", resOne.getURI().toString());
            wordNetConcept.put("name", resOne.getLabel()); //it was getName()
            if(wne!=null)
            {
              WordSense word = new WordSense((WordNetContext)wne.getContext(),wne.getURI(),null);
              wordNetConcept.put("type",word.getPOS()!=null?word.getPOS():"");
            }
            else wordNetConcept.put("type","");
            wordNetConcept.put("mean", resOne.getDescription());
            wordNetConcept.put("count", i);
            groupsJson.add(wordNetConcept);
View Full Code Here


     
      jo.put("uri", resOne.getURI().toString());
      jo.put("name", resOne.getLabel());
      if(wne!=null)
      {
        WordSense word = new WordSense((WordNetContext)wne.getContext(),wne.getURI(),null);
        jo.put("type",word.getPOS()!=null?word.getPOS():"");
      }
      else jo.put("type","");
      jo.put("mean", resOne.getDescription());
      jo.put("thesUri",resOne.getContext().getUri().toString());
     
View Full Code Here

TOP

Related Classes of org.corrib.jonto.wordnet.WordSense

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.