treebolic.provider.wn
Class XWordNet

java.lang.Object
  extended by edu.princeton.wordnet.WordNet
      extended by treebolic.provider.wn.XWordNet

 class XWordNet
extends edu.princeton.wordnet.WordNet

Extended WordNet querier

Author:
Bernard Bou

Field Summary
static java.lang.String[][] thePosLinkTypeString
          Link type string indexed on pos-1
static java.lang.String[] theSearchTypeXString
          Link type strings
 
Fields inherited from class edu.princeton.wordnet.WordNet
ADJ, ADJSAT, ADV, ALLPOS, ALLSENSES, ANTPTR, ATTRIBUTE, ATTRIBUTIVE, CAUSETO, CLASS, CLASS_CATEGORY, CLASS_REGIONAL, CLASS_USAGE, CLASSIF_CATEGORY, CLASSIF_REGIONAL, CLASSIF_USAGE, CLASSIFICATION, COORDS, COUSIN, COUSINEXC, DATA, DERIVATION, DIRECT_ANT, DONT_KNOW, ENTAILPTR, FIRSTCLASSIFTYPE, FIRSTCLASSTYPE, FIRSTLINKTYPE, FIRSTPOS, FIRSTSEARCHTYPE, FIRSTXSEARCHTYPE, FRAMES, FREQ, HASMEMBERPTR, HASPARTPTR, HASSTUFFPTR, HHOLONYM, HMERONYM, HOLONYM, HYPERPTR, HYPOPTR, IMMED_POSTNOMINAL, INDEX, INDIRECT_ANT, INSTANCE, INSTANCES, IPADJ, ISMEMBERPTR, ISPARTPTR, ISSTUFFPTR, LASTCLASSIFTYPE, LASTCLASSTYPE, LASTLINKTYPE, LASTPOS, LASTSEARCHTYPE, MAXLINKTYPE, MERONYM, NONE, NOPOS, NOUN, NPADJ, OVERVIEW, PADJ, PERTAINYM, PERTPTR, PPLPTR, PREDICATIVE, RELATIVES, SATELLITE, SEEALSOPTR, SENSE, SIMPTR, SYNS, thePosLinkMask, thePosString, theSearchTypeString, UNKNOWN_MARKER, VERB, VERBGROUP, VERBIDX, VERBSENTENCE, WNGREP
 
Constructor Summary
XWordNet()
          Constructor
 
Method Summary
static boolean canRecurse(int thisSearch)
          Get whether search type can recurse
 java.lang.String[] getPos2LemmaMap(int thisPosMask, java.lang.String thisWord)
          Get lemmas for part of speech and target word
 long[] getPos2LinksMap(int thisPosMask, java.lang.String thisWord)
          Get links for part of speech and target word
 int getPosMask(java.lang.String thisWord)
          Get part of speech mask
static java.lang.String getSearchType(int thisPos, int thisIndex, java.lang.String thisWord)
          Get search type string
 
Methods inherited from class edu.princeton.wordnet.WordNet
findtheinfo_ds, findtheinfo, getindex, getpos, getptrtype, getsstype, in_wn, index_lookup, is_defined, morphinit, morphstr, morphword, re_morphinit, re_wninit, read_synset, wninit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theSearchTypeXString

public static final java.lang.String[] theSearchTypeXString
Link type strings


thePosLinkTypeString

public static final java.lang.String[][] thePosLinkTypeString
Link type string indexed on pos-1

Constructor Detail

XWordNet

public XWordNet()
Constructor

Method Detail

canRecurse

public static boolean canRecurse(int thisSearch)
Get whether search type can recurse

Parameters:
thisSearch - search type
Returns:
true if search type can recurse

getSearchType

public static java.lang.String getSearchType(int thisPos,
                                             int thisIndex,
                                             java.lang.String thisWord)
Get search type string

Parameters:
thisPos - part of speech
thisIndex - index
thisWord - target word
Returns:
search type string

getPosMask

public int getPosMask(java.lang.String thisWord)
Get part of speech mask

Parameters:
thisWord - target word
Returns:
part of speech mask for target word

getPos2LinksMap

public long[] getPos2LinksMap(int thisPosMask,
                              java.lang.String thisWord)
Get links for part of speech and target word

Parameters:
thisPosMask - part of speech mask
thisWord - target word
Returns:
links

getPos2LemmaMap

public java.lang.String[] getPos2LemmaMap(int thisPosMask,
                                          java.lang.String thisWord)
Get lemmas for part of speech and target word

Parameters:
thisPosMask - part of speech mask
thisWord - target word
Returns:
lemmas