Esempio n. 1
0
            /// <summary>
            /// Retrieve all the senses that contain this word
            /// </summary>
            public static Hashtable GetSensesFromWord(string word)
            {
                java.util.TreeMap  tmap  = _wn.getSensesFromWord(word);
                java.util.Iterator it    = tmap.keySet().iterator();
                Hashtable          table = new Hashtable();

                while (it.hasNext())
                {
                    string key = (string)it.next();
                    java.util.ArrayList jlist = (java.util.ArrayList)tmap.get(key);
                    table.Add(key, HelperUtils.ToArrayList(jlist));
                }
                return(table);
            }
Esempio n. 2
0
 public ArrayList GetInstancesOf(Term term)
 {
     return(HelperUtils.ToArrayList(_kb.instancesOf(term.Text)));
 }
Esempio n. 3
0
 public ArrayList GetInstancesOf(string term)
 {
     return(HelperUtils.ToArrayList(_kb.instancesOf(term)));
 }