|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.tuebingen.uni.sfs.germanet.relatedness.LexicalField
public class LexicalField
Does all the calculations for the Lesk relatedness measure.
| Constructor Summary | |
|---|---|
LexicalField(de.tuebingen.uni.sfs.germanet.api.Synset synset,
de.tuebingen.uni.sfs.germanet.api.GermaNet gnet,
org.tartarus.snowball.SnowballStemmer stemmer,
int size,
int limit,
boolean oneOrthForm,
boolean hypernymsOnly,
boolean includeGermaNetGloss,
boolean includeWiktionaryGlosses)
Creates a new LexicalField, adding orthForms of this synset and related synsets, as well as glosses included in GermaNet as required by the parameters. |
|
| Method Summary | |
|---|---|
java.util.HashSet<java.lang.String> |
getField()
Returns the lexical field, i.e. |
java.lang.String |
toString()
Returns the field as a single String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LexicalField(de.tuebingen.uni.sfs.germanet.api.Synset synset,
de.tuebingen.uni.sfs.germanet.api.GermaNet gnet,
org.tartarus.snowball.SnowballStemmer stemmer,
int size,
int limit,
boolean oneOrthForm,
boolean hypernymsOnly,
boolean includeGermaNetGloss,
boolean includeWiktionaryGlosses)
synset - Synset to construct a lexical field forgnet - an instance of the GermaNet classoneOrthForm - if set to true, only one orthForm of each synset will
be used; if false, all forms will be included in the pseudo-glosssize - path length: how many related synsets will be included; if
size=0 and includeGloss=true, then the LexicalField consists of
glosses onlylimit - distance from root: how many synset layers will be excluded
for being too abstracthypernymsOnly - if true, use only hypernymy relation; otherwise, use
all types of relations except hyponymyincludeGermaNetGloss - if true, GermaNet's own glosses will
be included in the pseudo-gloss where they existincludeWiktionaryGlosses - if true, optionally loaded Wiktionary
glosses will be included in the pseudo-gloss where they existstemmer - a Stemmer instance (used to increase overlap); if null,
no stemming will occur.| Method Detail |
|---|
public java.util.HashSet<java.lang.String> getField()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||