Example #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);
            }
Example #2
0
 public ArrayList GetInstancesOf(Term term)
 {
     return(HelperUtils.ToArrayList(_kb.instancesOf(term.Text)));
 }
Example #3
0
 public ArrayList GetInstancesOf(string term)
 {
     return(HelperUtils.ToArrayList(_kb.instancesOf(term)));
 }