|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrita.RiObject
rita.support.remote.RiWordnetSupport
public class RiWordnetSupport
Dynamically loads the RiTa.WordNet library (if it is present) and delegates calls to it. Generally used for accessing Wordnet via the RiTaServer. Note: for most cases, is simpler to just use the rita.wordnet.RiTaWordnet that comes with RiTa.WordNet pkg.
| Field Summary | |
|---|---|
static java.lang.String |
RITA_WORDNET_CLASS
|
static java.lang.String |
RITA_WORDNET_URL
|
| Fields inherited from interface processing.core.PConstants |
|---|
A, AB, ADD, AG, ALPHA, ALPHA_MASK, ALT, AMBIENT, AR, ARC, ARGB, ARROW, B, BACKSPACE, BASELINE, BEEN_LIT, BEVEL, BLEND, BLUE_MASK, BLUR, BOTTOM, BOX, BURN, CENTER, CENTER_DIAMETER, CENTER_RADIUS, CHATTER, CLOSE, CMYK, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CUSTOM, DA, DARKEST, DB, DEG_TO_RAD, DELETE, DG, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ACCURATE_TEXTURES, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_OPENGL_2X_SMOOTH, DISABLE_OPENGL_ERROR_REPORT, DODGE, DOWN, DR, DXF, EB, EDGE, EG, ELLIPSE, ENABLE_ACCURATE_TEXTURES, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_2X_SMOOTH, ENABLE_OPENGL_4X_SMOOTH, ENABLE_OPENGL_ERROR_REPORT, ENTER, EPSILON, ER, ERODE, ERROR_BACKGROUND_IMAGE_FORMAT, ERROR_BACKGROUND_IMAGE_SIZE, ERROR_PUSHMATRIX_OVERFLOW, ERROR_PUSHMATRIX_UNDERFLOW, ERROR_TEXTFONT_NULL_PFONT, ESC, EXCLUSION, G, GIF, GRAY, GREEN_MASK, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LEFT, LIGHTEST, LINE, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MULTIPLY, NORMAL, NORMALIZED, NX, NY, NZ, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, platformNames, POINT, POINTS, POLYGON, POSTERIZE, PROBLEM, PROJECT, QUAD, QUAD_STRIP, QUADS, QUARTER_PI, R, RAD_TO_DEG, RADIUS, RECT, RED_MASK, REPLACE, RETURN, RGB, RIGHT, ROUND, SA, SB, SCREEN, SG, SHAPE, SHIFT, SHINE, SOFT_LIGHT, SPB, SPG, SPHERE, SPOT, SPR, SQUARE, SR, SUBTRACT, SW, TAB, TARGA, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, TX, TY, TZ, U, UP, V, VERTEX_FIELD_COUNT, VW, VX, VY, VZ, WAIT, WHITESPACE, WINDOWS, X, Y, Z |
| Constructor Summary | |
|---|---|
RiWordnetSupport()
|
|
RiWordnetSupport(processing.core.PApplet pApplet)
|
|
| Method Summary | |
|---|---|
boolean |
exists(java.lang.String word)
Checks the existence of a 'word' in the ontology |
java.lang.String[] |
filter(int filterFlag,
java.lang.String word,
java.lang.String pos)
|
java.lang.String[] |
filter(int filterFlag,
java.lang.String word,
java.lang.String pos,
int maxResults)
Return up to maxResults instances of specified
posStr matching the filter specified with filterFlag |
java.lang.String[] |
getAllAlsoSees(java.lang.String query,
java.lang.String pos)
Returns also-see terms for all senses ofword/pos or null if not found Holds for nouns (?) & adjectives Example: happy -> [cheerful, elated, euphoric, felicitous, joyful, joyous...] |
java.lang.String[] |
getAllAntonyms(java.lang.String word,
java.lang.String pos)
Returns String[] of Antonyms for the 1st sense of word with pos or null
if not foundHolds for adjectives only (?) |
java.lang.String[] |
getAllCoordinates(java.lang.String query,
java.lang.String pos)
Returns coordinate terms for all sense of word/pos, or null if not found X is a coordinate term of Y if there exists a term Z which is the hypernym of both X and Y. Examples: blackbird and robin are coordinate terms (since they are both a kind of thrush) gun and bow are coordinate terms (since they are both weapons) fork and spoon are coordinate terms (since they are both cutlery, or eating utensils) hat and helmet are coordinate terms (since they are both a kind of headgear or headdress) Example: arm -> [hind-limb, forelimb, flipper, leg, crus, thigh, arm...] Holds btwn nouns/nouns and verbs/verbs |
java.lang.String[] |
getAllDerivedTerms(java.lang.String query,
java.lang.String pos)
Returns derived terms forall senses of word/pos or null if not found Holds for adverbs Example: happily -> [jubilant, blithe, gay, mirthful, merry, happy] |
java.lang.String[] |
getAllExamples(java.lang.CharSequence word,
java.lang.CharSequence pos)
Returns examples for all senses of word with pos
if they contain the word, else null
if not found |
java.lang.String[] |
getAllGlosses(java.lang.String word,
java.lang.String pos)
Returns glosses for all senses of 'word' with 'pos', or null if not found |
java.lang.String[] |
getAllHolonyms(java.lang.String query,
java.lang.String pos)
Returns part-to-whole relationships for all sense of word/pos, or none if not found X is a meronym of Y if Y has X as a part. X is a holonym of Y if X has Y as a part. |
java.lang.String[] |
getAllHypernyms(java.lang.String word,
java.lang.String posStr)
Returns an ordered String[] of hypernym-synsets (each a semi-colon delimited String) up to the root of Wordnet for the 1st sense of the word, or null if not foundsssssss |
java.lang.String[] |
getAllHyponyms(java.lang.String word,
java.lang.String posStr)
Returns an unordered String[] of hyponym-synsets (each a colon-delimited String), or null if not found |
java.lang.String[] |
getAllMeronyms(java.lang.String query,
java.lang.String pos)
Returns array of whole-to-part relationships for all senses of word/pos, or null if not found X is a meronym of Y if Y has X as a part. X is a holonym of Y if X has Y as a part. |
java.lang.String[] |
getAllNominalizations(java.lang.String query,
java.lang.String pos)
Returns nominalized terms for all sense of word/pos or null if not found Refers to the use of a verb or an adjective as a noun. |
java.lang.String[] |
getAllSimilar(java.lang.String query,
java.lang.String pos)
Returns similar-to list for all sense of word/pos or null if not found Holds for adjectives Example: happy(a) -> [blessed, blissful, bright, golden, halcyon, prosperous...] |
java.lang.String[] |
getAllSynonyms(int id)
|
java.lang.String[] |
getAllSynonyms(int senseId,
int maxResults)
Returns an unordered String[] containing the synset, hyponyms, similars, alsoSees, and coordinate terms (checking each in order), or null if not found. |
java.lang.String[] |
getAllSynonyms(java.lang.String word,
java.lang.String posStr)
|
java.lang.String[] |
getAllSynonyms(java.lang.String word,
java.lang.String posStr,
int maxResults)
Returns an unordered String[] containing the synset, hyponyms, similars, alsoSees, and coordinate terms (checking each in order) for all senses of word with pos,
or null if not found |
java.lang.String[] |
getAllSynsets(java.lang.String word,
java.lang.String posStr)
Returns String[] of words in each synset for all senses of word with pos, or null if not found |
java.lang.String[] |
getAllVerbGroups(java.lang.String query,
java.lang.String pos)
Returns verb group for all senses of verb or null if not found Example: live -> [dwell, inhabit] Holds for verbs |
java.lang.String[] |
getAlsoSees(int senseId)
Returns also-see terms for seseId or null if not found Holds for nouns (?) & adjectives Example: happy -> [cheerful, elated, euphoric, felicitous, joyful, joyous...] |
java.lang.String[] |
getAlsoSees(java.lang.String query,
java.lang.String pos)
Returns also-see terms for 1st sense of word/pos or null if not found Holds for nouns (?) & adjectives Example: happy -> [cheerful, elated, euphoric, felicitous, joyful, joyous...] |
java.lang.String[] |
getAnagrams(java.lang.String word,
java.lang.String posStr)
Returns all full anagram matches for the specified word and pos |
java.lang.String[] |
getAnagrams(java.lang.String word,
java.lang.String posStr,
int maxResults)
Returns up to maxResults full anagram matches
for the specified word and pos |
java.lang.String[] |
getAntonyms(int id)
Returns String[] of Antonyms for the specified id, or null if not found Holds for adjectives only (?) |
java.lang.String[] |
getAntonyms(java.lang.String word,
java.lang.String pos)
Returns String[] of Antonyms for the 1st sense of word with pos or null
if not foundHolds for adjectives only (?) |
java.lang.String |
getAnyExample(java.lang.CharSequence word,
java.lang.CharSequence pos)
Return a random example from the set of examples from all senses of word with pos, assuming they contain
word, or else null if not found |
java.lang.String |
getBestPos(java.lang.String word)
Returns most-common pos according to polysemy count, returning the pos with the most different senses. |
java.lang.String[] |
getCommonParents(java.lang.String word1,
java.lang.String word2,
java.lang.String pos)
Returns String[] of Common Parents for 1st senses of words with specified pos' or null if not found |
java.lang.String[] |
getContains(java.lang.String word,
java.lang.String posStr)
Returns all 'contains' matches for the specified word and pos |
java.lang.String[] |
getContains(java.lang.String word,
java.lang.String posStr,
int maxResults)
Returns up to maxResults
of the specified pos
where each contains the given word |
java.lang.String[] |
getCoordinates(int id)
Returns String[] of Coordinates for the specified id, or null if not found |
java.lang.String[] |
getCoordinates(java.lang.String query,
java.lang.String pos)
Returns coordinate terms for 1st sense of word/pos, or null if not found X is a coordinate term of Y if there exists a term Z which is the hypernym of both X and Y. Examples: blackbird and robin are coordinate terms (since they are both a kind of thrush) gun and bow are coordinate terms (since they are both weapons) fork and spoon are coordinate terms (since they are both cutlery, or eating utensils) hat and helmet are coordinate terms (since they are both a kind of headgear or headdress) Example: arm -> [hind-limb, forelimb, flipper, leg, crus, thigh, arm...] Holds btwn nouns/nouns and verbs/verbs |
java.lang.String[] |
getDerivedTerms(int id)
Returns derived terms for the id, or null if not found Holds for adverbs Example: happily -> [jubilant, blithe, gay, mirthful, merry, happy] |
java.lang.String[] |
getDerivedTerms(java.lang.String query,
java.lang.String pos)
Returns derived terms for 1st sense of word/pos or null if not found Holds for adverbs Example: happily -> [jubilant, blithe, gay, mirthful, merry, happy] |
java.lang.String |
getDescription(int senseId)
Returns description for word with unique senseId,
or null if not found |
java.lang.String |
getDescription(java.lang.String word,
java.lang.String pos)
Returns description for word with pos or null if not found |
float |
getDistance(java.lang.String lemma1,
java.lang.String lemma2,
java.lang.String pos)
Returns the min distance between any two senses for the 2 words in the wordnet tree (result normalized to 0-1) with specified pos, or 1.0 if either is not found |
java.lang.String[] |
getEndsWith(java.lang.String word,
java.lang.String posStr)
Returns up to maxResults of the specified pos
ending with the given word. |
java.lang.String[] |
getEndsWith(java.lang.String word,
java.lang.String posStr,
int maxResults)
Returns up to maxResults of the specified pos
ending with the given word. |
java.lang.String[] |
getExamples(java.lang.CharSequence word,
java.lang.CharSequence pos)
Returns all examples for 1st sense of word with pos,
or null if not found |
java.lang.String[] |
getExamples(int senseId)
Returns examples for word with unique senseId, or null if
not found |
java.lang.String |
getGloss(int senseId)
Returns full gloss for word with unique senseId, or null if
not found |
java.lang.String |
getGloss(java.lang.String word,
java.lang.String pos)
Returns full gloss for !st sense of 'word' with 'pos' or null if not found |
java.lang.String[] |
getHolonyms(int id)
Returns part-to-whole relationships for 1st sense of word/pos, or none if not found X is a meronym of Y if Y has X as a part. X is a holonym of Y if X has Y as a part. |
java.lang.String[] |
getHolonyms(java.lang.String query,
java.lang.String pos)
Returns part-to-whole relationships for 1st sense of word/pos, or none if not found X is a meronym of Y if Y has X as a part. X is a holonym of Y if X has Y as a part. |
java.lang.String[] |
getHypernyms(int id)
Returns Hypernym String[] for id, or null if not found |
java.lang.String[] |
getHypernyms(java.lang.String word,
java.lang.String posStr)
Returns Hypernym String[] for all senses of word with pos or null if
not found |
java.lang.String[] |
getHypernymTree(int id)
Returns an ordered String[] of hypernym-synsets (each a semi-colon delimited String) up to the root of Wordnet for the id,
or null if not found |
java.lang.String[] |
getHyponyms(int id)
Returns Hyponym String[] for id, or null if not found |
java.lang.String[] |
getHyponyms(java.lang.String word,
java.lang.String posStr)
Returns Hyponym String[] for 1st sense of word with
pos or null if not found |
java.lang.String[] |
getHyponymTree(int id)
Returns an unordered String[] of hyponym-synsets (each a colon-delimited String) representing all paths to leaves in the ontology (the full hyponym tree), or null if not found |
java.lang.String[] |
getMeronyms(int id)
Returns array of whole-to-part relationships for id, or null if not found X is a meronym of Y if Y has X as a part. X is a holonym of Y if X has Y as a part. |
java.lang.String[] |
getMeronyms(java.lang.String query,
java.lang.String pos)
Returns array of whole-to-part relationships for 1st sense of word/pos, or null if not found X is a meronym of Y if Y has X as a part. X is a holonym of Y if X has Y as a part. |
java.lang.String[] |
getNominalizations(int id)
Returns nominalized terms for id, or null if not found Refers to the use of a verb or an adjective as a noun. |
java.lang.String[] |
getNominalizations(java.lang.String query,
java.lang.String pos)
Returns nominalized terms for 1st sense of word/pos or null if not found Refers to the use of a verb or an adjective as a noun. |
java.lang.String |
getPos(int id)
|
java.lang.String[] |
getPos(java.lang.String word)
Returns an array of all parts-of-speech ordered according to their polysemy count, returning the pos with the most different senses in the first position, etc. |
java.lang.String |
getRandomExample(java.lang.CharSequence pos)
Returns a random example from a random word w' pos |
java.lang.String[] |
getRandomExamples(java.lang.CharSequence pos,
int numExamples)
Returns numExamples random examples from random words w'
pos |
java.lang.String |
getRandomWord(java.lang.CharSequence pos)
Returns a random stem with pos and a max length
of this.maxCharsPerWord. |
java.lang.String |
getRandomWord(java.lang.CharSequence pos,
boolean stemsOnly,
int maxChars)
Returns a random word with pos and a maximum of
maxChars. |
java.lang.String[] |
getRandomWords(java.lang.CharSequence pos,
int count)
Returns count random words w' pos |
java.lang.String[] |
getRegexMatch(java.lang.String pattern,
java.lang.String posStr)
Returns up to maxResults of the specified pos
Example: 'table' returns 'turntable' & 'uncomfortable' |
java.lang.String[] |
getRegexMatch(java.lang.String pattern,
java.lang.String posStr,
int maxResults)
Returns up to maxResults of the specified pos
matching the the given regular expression pattern. |
int |
getSenseCount(java.lang.String word,
java.lang.String pos)
Return the # of senses (polysemy) for a given word/pos. |
int[] |
getSenseIds(java.lang.String word,
java.lang.String posStr)
Returns String[] of unique ids, one for each 'sense' of word
with pos, or null if none are found. |
java.lang.String[] |
getSimilar(int id)
Returns similar-to list for id, or null if not found Holds for adjectives Example: happy(a) -> [blessed, blissful, bright, golden, halcyon, prosperous...] |
java.lang.String[] |
getSimilar(java.lang.String query,
java.lang.String pos)
Returns similar-to list for first sense of word/pos or null if not found Holds for adjectives Example: happy(a) -> [blessed, blissful, bright, golden, halcyon, prosperous...] |
java.lang.String[] |
getSoundsLike(java.lang.String pattern,
java.lang.String posStr)
Returns up to maxResults of the specified pos
that match the soundex code of the given word. |
java.lang.String[] |
getSoundsLike(java.lang.String pattern,
java.lang.String posStr,
int maxResults)
Returns up to maxResults of the specified pos
that match the soundex code of the given word. |
java.lang.String[] |
getStartsWith(java.lang.String word,
java.lang.String posStr)
Returns up to maxResults of the specified pos
starting with the given word. |
java.lang.String[] |
getStartsWith(java.lang.String word,
java.lang.String posStr,
int maxResults)
Returns up to maxResults of the specified pos
starting with the given word. |
java.lang.String[] |
getStems(java.lang.String query,
java.lang.CharSequence pos)
Returns an array of all stems, or null if not found |
java.lang.String[] |
getSynonyms(java.lang.String word,
java.lang.String posStr)
Returns an unordered String[] containing the synset, hyponyms, similars, alsoSees, and coordinate terms (checking each in order) for all senses of word with pos,
or null if not found |
java.lang.String[] |
getSynonyms(java.lang.String word,
java.lang.String posStr,
int maxResults)
Returns an unordered String[] containing the synset, hyponyms, similars, alsoSees, and coordinate terms (checking each in order) for all senses of word with pos,
or null if not found |
java.lang.String[] |
getSynset(int id)
Returns String[] of Synsets for unique id id or null if not found. |
java.lang.String[] |
getSynset(java.lang.String word,
java.lang.String pos)
Returns String[] of words in synset for first sense of word
with pos, or null if not found. |
java.lang.String[] |
getSynset(java.lang.String word,
java.lang.String pos,
boolean includeOriginal)
Returns String[] of words in synset for first sense of word
with pos, or null if not found. |
java.lang.String[] |
getVerbGroup(int id)
Returns verb group for id, or null if not found Example: live -> [dwell, inhabit] Holds for verbs |
java.lang.String[] |
getVerbGroup(java.lang.String query,
java.lang.String pos)
Returns verb group for 1st sense of verb or null if not found Example: live -> [dwell, inhabit] Holds for verbs |
java.lang.String[] |
getWildcardMatch(java.lang.String pattern,
java.lang.String posStr)
Returns up to maxResults of the specified pos
matching a wildcard pattern,with '*' representing any number of characters, and '?' equals any single character.. |
java.lang.String[] |
getWildcardMatch(java.lang.String pattern,
java.lang.String posStr,
int maxResults)
Returns up to maxResults of the specified pos
matching a wildcard pattern,with * '*' equals any number of characters, and '?' equals any single character. |
void |
ignoreCompoundWords(boolean ignoreCompoundWords)
|
void |
ignoreUpperCaseWords(boolean ignoreUpperCaseWords)
|
boolean |
isAdjective(java.lang.String word)
|
boolean |
isAdverb(java.lang.String word)
|
boolean |
isIgnoringCompoundWords()
|
boolean |
isIgnoringUpperCaseWords()
|
boolean |
isNoun(java.lang.String word)
|
boolean |
isStem(java.lang.String word,
java.lang.CharSequence pos)
Returns true if 'word' exists with 'pos' and is equal (via String.equals()) to any of its stem forms, else false; |
boolean |
isVerb(java.lang.String word)
|
static void |
main(java.lang.String[] args)
|
java.lang.String[] |
orFilter(int[] filterFlag,
java.lang.String[] word,
java.lang.String pos)
|
java.lang.String[] |
orFilter(int[] filterFlags,
java.lang.String[] words,
java.lang.String pos,
int maxResults)
Return up to maxResults instances of specified
matching ANY of the filters specified with filterFlags. |
void |
printHypernymTree(int senseId)
Prints the full hypernym tree to System.out (primarily for debugging). |
void |
printHyponymTree(int senseId)
Prints the full hyponym tree to System.out (primarily for debugging). |
void |
removeNonExistent(java.util.Collection words)
Check each word in 'words' and removes those that don't exist in the ontology. |
void |
setWordnetHome(java.lang.String wordnetHome)
|
| Methods inherited from class rita.RiObject |
|---|
dispose, getId, getPApplet, nextId |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RITA_WORDNET_URL
public static final java.lang.String RITA_WORDNET_CLASS
| Constructor Detail |
|---|
public RiWordnetSupport()
public RiWordnetSupport(processing.core.PApplet pApplet)
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public boolean exists(java.lang.String word)
RiWordnetIF
exists in interface RiWordnetIF
public java.lang.String[] filter(int filterFlag,
java.lang.String word,
java.lang.String pos,
int maxResults)
RiWordnetIFmaxResults instances of specified
posStr matching the filter specified with filterFlagFilter types include:
RiWordnet.EXACT_MATCH
RiWordnet.ENDS_WITH
RiWordnet.STARTS_WITH
RiWordnet.ANAGRAMS
RiWordnet.CONTAINS_ALL
RiWordnet.CONTAINS_SOME
RiWordnet.CONTAINS
RiWordnet.SIMILAR_TO
RiWordnet.SOUNDS_LIKE
RiWordnet.WILDCARD_MATCH
RiWordnet.REGEX_MATCH
filter in interface RiWordnetIF
public java.lang.String[] filter(int filterFlag,
java.lang.String word,
java.lang.String pos)
filter in interface RiWordnetIF
public java.lang.String[] getAllAlsoSees(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getAllAlsoSees in interface RiWordnetIF
public java.lang.String[] getAllAntonyms(java.lang.String word,
java.lang.String pos)
RiWordnetIFword with pos or null
if not found
getAllAntonyms in interface RiWordnetIF
public java.lang.String[] getAllCoordinates(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getAllCoordinates in interface RiWordnetIF
public java.lang.String[] getAllDerivedTerms(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getAllDerivedTerms in interface RiWordnetIF
public java.lang.String[] getAllExamples(java.lang.CharSequence word,
java.lang.CharSequence pos)
RiWordnetIFword with pos
if they contain the word, else null
if not found
getAllExamples in interface RiWordnetIF
public java.lang.String[] getAllGlosses(java.lang.String word,
java.lang.String pos)
RiWordnetIF
getAllGlosses in interface RiWordnetIF
public java.lang.String[] getAllHolonyms(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getAllHolonyms in interface RiWordnetIF
public java.lang.String[] getAllHypernyms(java.lang.String word,
java.lang.String posStr)
RiWordnetIF
getAllHypernyms in interface RiWordnetIF
public java.lang.String[] getAllHyponyms(java.lang.String word,
java.lang.String posStr)
RiWordnetIF
getAllHyponyms in interface RiWordnetIF
public java.lang.String[] getAllMeronyms(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getAllMeronyms in interface RiWordnetIF
public java.lang.String[] getAllNominalizations(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getAllNominalizations in interface RiWordnetIF
public java.lang.String[] getAllSimilar(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getAllSimilar in interface RiWordnetIF
public java.lang.String[] getAllSynonyms(int senseId,
int maxResults)
RiWordnetIF
getAllSynonyms in interface RiWordnetIFpublic java.lang.String[] getAllSynonyms(int id)
getAllSynonyms in interface RiWordnetIF
public java.lang.String[] getAllSynonyms(java.lang.String word,
java.lang.String posStr,
int maxResults)
RiWordnetIFword with pos,
or null if not found
getAllSynonyms in interface RiWordnetIF
public java.lang.String[] getAllSynonyms(java.lang.String word,
java.lang.String posStr)
getAllSynonyms in interface RiWordnetIF
public java.lang.String[] getAllSynsets(java.lang.String word,
java.lang.String posStr)
RiWordnetIFword with pos, or null if not found
getAllSynsets in interface RiWordnetIF
public java.lang.String[] getAllVerbGroups(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getAllVerbGroups in interface RiWordnetIFpublic java.lang.String[] getAlsoSees(int senseId)
RiWordnetIF
getAlsoSees in interface RiWordnetIF
public java.lang.String[] getAlsoSees(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getAlsoSees in interface RiWordnetIF
public java.lang.String[] getAnagrams(java.lang.String word,
java.lang.String posStr,
int maxResults)
RiWordnetIFmaxResults full anagram matches
for the specified word and posExample: 'table' returns 'bleat' (but not 'tale').
getAnagrams in interface RiWordnetIF
public java.lang.String[] getAnagrams(java.lang.String word,
java.lang.String posStr)
RiWordnetIFword and posExample: 'table' returns 'bleat' (but not 'tale').
getAnagrams in interface RiWordnetIFpublic java.lang.String[] getAntonyms(int id)
RiWordnetIF
getAntonyms in interface RiWordnetIF
public java.lang.String[] getAntonyms(java.lang.String word,
java.lang.String pos)
RiWordnetIFword with pos or null
if not found
getAntonyms in interface RiWordnetIF
public java.lang.String getAnyExample(java.lang.CharSequence word,
java.lang.CharSequence pos)
RiWordnetIFword with pos, assuming they contain
word, or else null if not found
getAnyExample in interface RiWordnetIFpublic java.lang.String getBestPos(java.lang.String word)
RiWordnetIF
getBestPos in interface RiWordnetIF
public java.lang.String[] getCommonParents(java.lang.String word1,
java.lang.String word2,
java.lang.String pos)
RiWordnetIF
getCommonParents in interface RiWordnetIF
public java.lang.String[] getContains(java.lang.String word,
java.lang.String posStr,
int maxResults)
RiWordnetIFmaxResults
of the specified pos
where each contains the given wordExample: 'table' returns 'bleat' (but not 'tale').
getContains in interface RiWordnetIF
public java.lang.String[] getContains(java.lang.String word,
java.lang.String posStr)
RiWordnetIFword and posExample: 'table' returns 'bleat' (but not 'tale').
getContains in interface RiWordnetIFpublic java.lang.String[] getCoordinates(int id)
RiWordnetIF
getCoordinates in interface RiWordnetIF
public java.lang.String[] getCoordinates(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getCoordinates in interface RiWordnetIFpublic java.lang.String[] getDerivedTerms(int id)
RiWordnetIF
getDerivedTerms in interface RiWordnetIF
public java.lang.String[] getDerivedTerms(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getDerivedTerms in interface RiWordnetIFpublic java.lang.String getDescription(int senseId)
RiWordnetIFsenseId,
or null if not found
getDescription in interface RiWordnetIF
public java.lang.String getDescription(java.lang.String word,
java.lang.String pos)
RiWordnetIFword with pos or null if not found
getDescription in interface RiWordnetIF
public float getDistance(java.lang.String lemma1,
java.lang.String lemma2,
java.lang.String pos)
RiWordnetIF
getDistance in interface RiWordnetIF
public java.lang.String[] getEndsWith(java.lang.String word,
java.lang.String posStr,
int maxResults)
RiWordnetIFmaxResults of the specified pos
ending with the given word.Example: 'table' returns 'turntable' & 'uncomfortable'
getEndsWith in interface RiWordnetIF
public java.lang.String[] getEndsWith(java.lang.String word,
java.lang.String posStr)
RiWordnetIFmaxResults of the specified pos
ending with the given word.Example: 'table' returns 'turntable' & 'uncomfortable'
getEndsWith in interface RiWordnetIF
public java.lang.String[] getExamples(java.lang.CharSequence word,
java.lang.CharSequence pos)
RiWordnetIFword with pos,
or null if not found
getExamples in interface RiWordnetIFpublic java.lang.String[] getExamples(int senseId)
RiWordnetIFsenseId, or null if
not found
getExamples in interface RiWordnetIFpublic java.lang.String getGloss(int senseId)
RiWordnetIFsenseId, or null if
not found
getGloss in interface RiWordnetIF
public java.lang.String getGloss(java.lang.String word,
java.lang.String pos)
RiWordnetIF
getGloss in interface RiWordnetIFpublic java.lang.String[] getHolonyms(int id)
RiWordnetIF
getHolonyms in interface RiWordnetIF
public java.lang.String[] getHolonyms(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getHolonyms in interface RiWordnetIFpublic java.lang.String[] getHypernyms(int id)
RiWordnetIF
X is a hyponym of Y if there exists an is-a relationship between X and Y.
That is, if X is a subtype of Y.
Or, for example, if X is a species of the genus Y.
X is a hypernym of Y is Y is a hyponym of X.
Holds between: nouns and nouns & verbs and verbs
Examples:
getHypernyms in interface RiWordnetIF
public java.lang.String[] getHypernyms(java.lang.String word,
java.lang.String posStr)
RiWordnetIFword with pos or null if
not found
X is a hyponym of Y if there exists an is-a relationship between X and Y.
That is, if X is a subtype of Y.
Or, for xample, if X is a species of the genus Y.
X is a hypernym of Y is Y is a hyponym of X.
Holds between: nouns and nouns & verbs and verbs
Examples:
getHypernyms in interface RiWordnetIFpublic java.lang.String[] getHypernymTree(int id)
RiWordnetIFid,
or null if not found
getHypernymTree in interface RiWordnetIFpublic java.lang.String[] getHyponyms(int id)
RiWordnetIF
X is a hyponym of Y if there exists an is-a relationship between X and Y.
That is, if X is a subtype of Y.
Or, for xample, if X is a species of the genus Y.
X is a hypernym of Y is Y is a hyponym of X.
Holds between: nouns and nouns & verbs and verbs
Examples:
getHyponyms in interface RiWordnetIF
public java.lang.String[] getHyponyms(java.lang.String word,
java.lang.String posStr)
RiWordnetIFword with
pos or null if not found
X is a hyponym of Y if there exists an is-a relationship between X and Y.
That is, if X is a subtype of Y.
Or, for xample, if X is a species of the genus Y.
X is a hypernym of Y is Y is a hyponym of X.
Holds between: nouns and nouns & verbs and verbs
Examples:
getHyponyms in interface RiWordnetIFpublic java.lang.String[] getHyponymTree(int id)
RiWordnetIF
getHyponymTree in interface RiWordnetIFpublic java.lang.String[] getMeronyms(int id)
RiWordnetIF
getMeronyms in interface RiWordnetIF
public java.lang.String[] getMeronyms(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getMeronyms in interface RiWordnetIFpublic java.lang.String[] getNominalizations(int id)
RiWordnetIF
getNominalizations in interface RiWordnetIF
public java.lang.String[] getNominalizations(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getNominalizations in interface RiWordnetIFpublic java.lang.String getPos(int id)
getPos in interface RiWordnetIFpublic java.lang.String[] getPos(java.lang.String word)
RiWordnetIF
getPos in interface RiWordnetIFpublic java.lang.String getRandomExample(java.lang.CharSequence pos)
RiWordnetIFpos
getRandomExample in interface RiWordnetIF
public java.lang.String[] getRandomExamples(java.lang.CharSequence pos,
int numExamples)
RiWordnetIFnumExamples random examples from random words w'
pos
getRandomExamples in interface RiWordnetIF
public java.lang.String getRandomWord(java.lang.CharSequence pos,
boolean stemsOnly,
int maxChars)
RiWordnetIFpos and a maximum of
maxChars.
getRandomWord in interface RiWordnetIFpublic java.lang.String getRandomWord(java.lang.CharSequence pos)
RiWordnetIFpos and a max length
of this.maxCharsPerWord.
getRandomWord in interface RiWordnetIF
public java.lang.String[] getRandomWords(java.lang.CharSequence pos,
int count)
RiWordnetIFcount random words w' pos
getRandomWords in interface RiWordnetIF
public java.lang.String[] getRegexMatch(java.lang.String pattern,
java.lang.String posStr,
int maxResults)
RiWordnetIFmaxResults of the specified pos
matching the the given regular expression pattern.
getRegexMatch in interface RiWordnetIFPattern
public java.lang.String[] getRegexMatch(java.lang.String pattern,
java.lang.String posStr)
RiWordnetIFmaxResults of the specified pos
Example: 'table' returns 'turntable' & 'uncomfortable'
getRegexMatch in interface RiWordnetIFPattern
public int getSenseCount(java.lang.String word,
java.lang.String pos)
RiWordnetIFFor more info, see http://wordnet.princeton.edu/man/wngloss.7WN.html.
getSenseCount in interface RiWordnetIF
public int[] getSenseIds(java.lang.String word,
java.lang.String posStr)
RiWordnetIFword
with pos, or null if none are found.A Wordnet 'sense' refers to a specific Wordnet meaning and maps 1-1 to the concept of synsets. Each 'sense' of a word exists in a different synset.
For more info, see: http://wordnet.princeton.edu/man/wngloss.7WN.html
getSenseIds in interface RiWordnetIFpublic java.lang.String[] getSimilar(int id)
RiWordnetIF
getSimilar in interface RiWordnetIF
public java.lang.String[] getSimilar(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getSimilar in interface RiWordnetIF
public java.lang.String[] getSoundsLike(java.lang.String pattern,
java.lang.String posStr,
int maxResults)
RiWordnetIFmaxResults of the specified pos
that match the soundex code of the given word.
getSoundsLike in interface RiWordnetIF
public java.lang.String[] getSoundsLike(java.lang.String pattern,
java.lang.String posStr)
RiWordnetIFmaxResults of the specified pos
that match the soundex code of the given word.
getSoundsLike in interface RiWordnetIF
public java.lang.String[] getStartsWith(java.lang.String word,
java.lang.String posStr,
int maxResults)
RiWordnetIFmaxResults of the specified pos
starting with the given word.Example: 'turn' returns 'turntable'
getStartsWith in interface RiWordnetIF
public java.lang.String[] getStartsWith(java.lang.String word,
java.lang.String posStr)
RiWordnetIFmaxResults of the specified pos
starting with the given word.Example: 'turn' returns 'turntable'
getStartsWith in interface RiWordnetIF
public java.lang.String[] getStems(java.lang.String query,
java.lang.CharSequence pos)
RiWordnetIF
getStems in interface RiWordnetIF
public java.lang.String[] getSynonyms(java.lang.String word,
java.lang.String posStr,
int maxResults)
RiWordnetIFword with pos,
or null if not found
getSynonyms in interface RiWordnetIF
public java.lang.String[] getSynonyms(java.lang.String word,
java.lang.String posStr)
RiWordnetIFword with pos,
or null if not found
getSynonyms in interface RiWordnetIFpublic java.lang.String[] getSynset(int id)
RiWordnetIFid or null if not found.
getSynset in interface RiWordnetIF
public java.lang.String[] getSynset(java.lang.String word,
java.lang.String pos,
boolean includeOriginal)
RiWordnetIFword
with pos, or null if not found.
getSynset in interface RiWordnetIF
public java.lang.String[] getSynset(java.lang.String word,
java.lang.String pos)
RiWordnetIFword
with pos, or null if not found. Note: original word is excluded by default.
getSynset in interface RiWordnetIFRiWordnetIF.getSynset(String, String, boolean)public java.lang.String[] getVerbGroup(int id)
RiWordnetIF
getVerbGroup in interface RiWordnetIF
public java.lang.String[] getVerbGroup(java.lang.String query,
java.lang.String pos)
RiWordnetIF
getVerbGroup in interface RiWordnetIF
public java.lang.String[] getWildcardMatch(java.lang.String pattern,
java.lang.String posStr,
int maxResults)
RiWordnetIFmaxResults of the specified pos
matching a wildcard pattern,
Example: 't?le' returns (tale,tile,tole)
Example: 't*le' returns (tatumble, turtle, tussle, etc.)
Example: 't?le*' returns (telex, tile,tilefish,tile,talent, tiles, etc.)
getWildcardMatch in interface RiWordnetIF
public java.lang.String[] getWildcardMatch(java.lang.String pattern,
java.lang.String posStr)
RiWordnetIFmaxResults of the specified pos
matching a wildcard pattern,
Example: 't?le' returns (tale,tile,tole)
Example: 't*le' returns (tatumble, turtle, tussle, etc.)
Example: 't?le*' returns (telex, tile,tilefish,tile,talent, tiles, etc.)
getWildcardMatch in interface RiWordnetIFpublic void ignoreCompoundWords(boolean ignoreCompoundWords)
ignoreCompoundWords in interface RiWordnetIFpublic void ignoreUpperCaseWords(boolean ignoreUpperCaseWords)
ignoreUpperCaseWords in interface RiWordnetIFpublic boolean isAdjective(java.lang.String word)
isAdjective in interface RiWordnetIFpublic boolean isAdverb(java.lang.String word)
isAdverb in interface RiWordnetIFpublic boolean isIgnoringCompoundWords()
isIgnoringCompoundWords in interface RiWordnetIFpublic boolean isIgnoringUpperCaseWords()
isIgnoringUpperCaseWords in interface RiWordnetIFpublic boolean isNoun(java.lang.String word)
isNoun in interface RiWordnetIF
public boolean isStem(java.lang.String word,
java.lang.CharSequence pos)
RiWordnetIF
isStem in interface RiWordnetIFpublic boolean isVerb(java.lang.String word)
isVerb in interface RiWordnetIF
public java.lang.String[] orFilter(int[] filterFlags,
java.lang.String[] words,
java.lang.String pos,
int maxResults)
RiWordnetIFmaxResults instances of specified
matching ANY of the filters specified with filterFlags.Filter types include:
RiWordnet.EXACT_MATCH
RiWordnet.ENDS_WITH
RiWordnet.STARTS_WITH
RiWordnet.ANAGRAMS
RiWordnet.CONTAINS_ALL
RiWordnet.CONTAINS_SOME
RiWordnet.CONTAINS
RiWordnet.SIMILAR_TO
RiWordnet.SOUNDS_LIKE
RiWordnet.WILDCARD_MATCH
RiWordnet.REGEX_MATCH
orFilter in interface RiWordnetIF
public java.lang.String[] orFilter(int[] filterFlag,
java.lang.String[] word,
java.lang.String pos)
orFilter in interface RiWordnetIFpublic void printHypernymTree(int senseId)
RiWordnetIF
printHypernymTree in interface RiWordnetIFpublic void printHyponymTree(int senseId)
RiWordnetIF
printHyponymTree in interface RiWordnetIFpublic void removeNonExistent(java.util.Collection words)
RiWordnetIFNote: destructive operation
removeNonExistent in interface RiWordnetIFpublic void setWordnetHome(java.lang.String wordnetHome)
setWordnetHome in interface RiWordnetIF
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||