Constructor and Description |
---|
BabelSense(it.uniroma1.lcl.jlt.util.Language language,
String lemma,
BabelPOS pos,
BabelSenseSource source,
String sensekey,
String wordNetOffset,
int position,
int frequency,
Integer sensenumber,
String translationInfo,
String freebaseId,
String YAGOURL,
BabelSynset synset,
boolean bKeyConcept,
BabelSensePhonetics pronunciations)
Creates a new instance of a
BabelSense |
BabelSense(it.uniroma1.lcl.jlt.util.Language language,
String lemma,
BabelPOS pos,
BabelSenseSource source,
String sensekey,
String wordNetOffset,
int position,
int frequency,
int sensenumber,
String translationInfo,
String freebaseId,
String YAGOURL,
BabelSynset synset,
boolean bKeyConcept)
No BabelSensePhonetics
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDBPediaURI()
Get a link to the corresponding DBPedia URI (empty
String if no
interlinking is available or possible) |
String |
getFrameNetURI()
Get a link to the corresponding FremaNet URI (empty
String if no
interlinking is available or possible) |
String |
getFreebaseURI()
Deprecated.
Freebase will be shut-down soon.
|
Integer |
getFrequency()
Gets the frequency score for this
BabelSense . |
String |
getGeoNamesURI()
Get a link to the corresponding GeoNames URI (empty
String if no
interlinking is available or possible) |
it.uniroma1.lcl.jlt.util.Language |
getLanguage()
Gets the
Language of this BabelSense |
String |
getLemma()
Gets the lemma of this
BabelSense . |
BabelLicense |
getLicense()
Returns the license for this Babel sense
|
BabelPOS |
getPOS()
Gets the part of speech of this
BabelSense . |
Integer |
getPosition()
Gets the WordNet position of the WordNet sense to which this
BabelSense
corresponds, if any. |
BabelSensePhonetics |
getPronunciations()
Returns the pronunciations
|
String |
getSensekey()
Gets the sensekey of the WordNet, Omega, Wikidata or Wiktionary sense to which this
BabelSense
corresponds, if any. |
int |
getSenseNumber()
Gets the sense number of this
BabelSense . |
String |
getSenseString()
Gets a String-based representation of this
BabelSense alternative to the "canonical" one obtained using
toString() . |
BabelSenseTranslationInfo |
getSenseTranslationInfo()
Gets translation-related information about this
BabelSense . |
String |
getSimpleLemma()
Gets the simple lemma of this
BabelSense . |
BabelSenseSource |
getSource()
Gets the
BabelSenseSource of this BabelSense . |
BabelSynset |
getSynset()
Gets the
BabelSynset to which this BabelSense
belongs to. |
BabelSynsetID |
getSynsetID()
Returns the BabelSynset id
|
String |
getVerbNetURI()
Get a link to the corresponding VerbNet URI (empty
String if no
interlinking is available or possible) |
String |
getWordNetOffset()
Gets the WordNet offset of the WordNet sense to which this
BabelSense
corresponds, if any. |
String |
getYAGOURI()
Get a link to the corresponding YAGO URI (empty
String if no
interlinking is available or possible) |
int |
hashCode() |
boolean |
isKeyConcept() |
String |
toString() |
public BabelSense(it.uniroma1.lcl.jlt.util.Language language, String lemma, BabelPOS pos, BabelSenseSource source, String sensekey, String wordNetOffset, int position, int frequency, int sensenumber, String translationInfo, String freebaseId, String YAGOURL, BabelSynset synset, boolean bKeyConcept)
language
- lemma
- pos
- source
- sensekey
- wordNetOffset
- position
- translationInfo
- freebaseId
- synset
- public BabelSense(it.uniroma1.lcl.jlt.util.Language language, String lemma, BabelPOS pos, BabelSenseSource source, String sensekey, String wordNetOffset, int position, int frequency, Integer sensenumber, String translationInfo, String freebaseId, String YAGOURL, BabelSynset synset, boolean bKeyConcept, BabelSensePhonetics pronunciations)
BabelSense
language
- lemma
- pos
- source
- sensekey
- synset
- pronunciations
- public boolean isKeyConcept()
public String getLemma()
BabelSense
.BabelSense
.public String getSimpleLemma()
BabelSense
.
This corresponds to the lemma itself, if the lemma comes from WordNet,
or the lemma possibly without sense labels (i.e. parenthesis) if it
comes from WikipediaBabelSense
.public BabelPOS getPOS()
BabelSense
.BabelSense
.public BabelSenseSource getSource()
BabelSenseSource
of this BabelSense
.BabelSenseSource
of this BabelSense
.public it.uniroma1.lcl.jlt.util.Language getLanguage()
Language
of this BabelSense
Language
of this BabelSense
.public BabelSynset getSynset()
BabelSynset
to which this BabelSense
belongs to.BabelSynset
of this BabelSense
.public String getSensekey()
BabelSense
corresponds, if any.BabelSense
.public String getWordNetOffset()
BabelSense
corresponds, if any.BabelSense
.public Integer getPosition()
BabelSense
corresponds, if any.BabelSense
.public Integer getFrequency()
BabelSense
. This score represents, for a Wikipedia page/redirection,
the number of its incoming links. Otherwise it is null.BabelSense
.public BabelSenseTranslationInfo getSenseTranslationInfo()
BabelSense
.BabelSense
.public BabelSensePhonetics getPronunciations()
BabelSense
public BabelSynsetID getSynsetID()
BabelSense
public String getDBPediaURI()
String
if no
interlinking is available or possible)public String getFreebaseURI()
String
if no
interlinking is available or possible)public String getYAGOURI()
String
if no
interlinking is available or possible)public String getGeoNamesURI()
String
if no
interlinking is available or possible)public String getFrameNetURI()
String
if no
interlinking is available or possible)public String getVerbNetURI()
String
if no
interlinking is available or possible)public String getSenseString()
BabelSense
alternative to the "canonical" one obtained using
toString()
. This corresponds to a diesis-like representation if
the sense belongs to WordNet, e.g. "car#n#1" or "funk#n#3", or the page
title (with no prefix) it if corresponds to a Wikipedia sense, otherwise
the lemma if it is a translationBabelSense
.public int getSenseNumber()
BabelSense
. This
corresponds to the sense number found in WordNet, if the sense belongs
to WordNet, 0 otherwise.BabelSense
.public BabelLicense getLicense()
Copyright © 2016. All rights reserved.