Package org.corrib.jonto.wordnet

Examples of org.corrib.jonto.wordnet.WordNetEntry


            resultJson.add(jo);
          }
          //and now the wordnet
          if(i>0)
          {
            WordNetEntry wne = null;
            if(resOne.getContext().getLabel().equals("WordNet"))
            {
              wne = (WordNetEntry)resOne;
            }
            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);
View Full Code Here


  {
    JSONArray ja = new JSONArray();
   
    for(ThesaurusEntry resOne: this.wnc)
    {
      WordNetEntry wne = null;
      if(resOne.getContext().getLabel().equals("WordNet"))
      {
        wne = (WordNetEntry)resOne;
      }
      JSONObject jo = new JSONObject();
     
      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.WordNetEntry

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.