Package edu.upf.taln.dri.lib.model.ext
Class BabelSynsetOccImpl
- java.lang.Object
-
- edu.upf.taln.dri.lib.model.BaseDocumentElem
-
- edu.upf.taln.dri.lib.model.ext.BabelSynsetOccImpl
-
- All Implemented Interfaces:
BabelSynsetOcc
public class BabelSynsetOccImpl extends BaseDocumentElem implements BabelSynsetOcc
IMPORTANT: Never instantiate directly this class!
A Babelnet synset occurrence mined from the document.
-
-
Field Summary
-
Fields inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
cacheManager
-
-
Constructor Summary
Constructors Constructor Description BabelSynsetOccImpl(DocCacheManager cacheManager)
BabelSynsetOccImpl(DocCacheManager cacheManager, Integer id)
BabelSynsetOccImpl(DocCacheManager cacheManager, Integer id, String text, Integer sentenceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString(boolean compactOutput)
String representation of the objectString
getBabelURL()
The BabelNet URL associated to this Babelnet synset occurrenceDouble
getCoherenceScore()
The coherence score asscoiated to this Babelnet synset occurrenceString
getDbpediaURL()
The DBpedia URL associated to this Babelnet synset occurrenceDouble
getGolbalScore()
The global score associated to this Babelnet synset occurrenceInteger
getId()
Document-wide unambiguous Babelnet synset occurrence IdInteger
getInSentenceId()
Integer
getNumTokens()
The number of tokens covered by this Babelnet synset occurrenceDouble
getScore()
The score associated to this Babelnet synset occurrenceInteger
getSentenceIdWithTerm()
Get the id of the sentence that includes the Babelnet synset occurrenceString
getSource()
The source associated to this Babelnet synset occurrenceString
getSynsetID()
The Babelnet Synset ID associated to this Babelnet synset occurrenceString
getText()
The Babelnet synset occurrence textvoid
setBabelURL(String babelURL)
void
setCoherenceScore(Double coherenceScore)
void
setDbpediaURL(String dbpediaURL)
void
setGolbalScore(Double golbalScore)
void
setId(Integer id)
void
setInSentenceId(Integer inSentenceId)
void
setNumTokens(Integer numTokens)
void
setScore(Double score)
void
setSource(String source)
void
setSynsetID(String synsetID)
void
setText(String text)
-
Methods inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
getCacheManager, setCacheManager
-
-
-
-
Constructor Detail
-
BabelSynsetOccImpl
public BabelSynsetOccImpl(DocCacheManager cacheManager)
-
BabelSynsetOccImpl
public BabelSynsetOccImpl(DocCacheManager cacheManager, Integer id)
-
BabelSynsetOccImpl
public BabelSynsetOccImpl(DocCacheManager cacheManager, Integer id, String text, Integer sentenceId)
-
-
Method Detail
-
getId
public Integer getId()
Description copied from interface:BabelSynsetOcc
Document-wide unambiguous Babelnet synset occurrence Id- Specified by:
getId
in interfaceBabelSynsetOcc
- Returns:
- document-wide unambiguous term Id
-
setId
public void setId(Integer id)
-
getText
public String getText()
Description copied from interface:BabelSynsetOcc
The Babelnet synset occurrence text- Specified by:
getText
in interfaceBabelSynsetOcc
- Returns:
- term text
-
setText
public void setText(String text)
-
getInSentenceId
public Integer getInSentenceId()
-
setInSentenceId
public void setInSentenceId(Integer inSentenceId)
-
getBabelURL
public String getBabelURL()
Description copied from interface:BabelSynsetOcc
The BabelNet URL associated to this Babelnet synset occurrence- Specified by:
getBabelURL
in interfaceBabelSynsetOcc
- Returns:
-
setBabelURL
public void setBabelURL(String babelURL)
-
getSynsetID
public String getSynsetID()
Description copied from interface:BabelSynsetOcc
The Babelnet Synset ID associated to this Babelnet synset occurrence- Specified by:
getSynsetID
in interfaceBabelSynsetOcc
- Returns:
-
setSynsetID
public void setSynsetID(String synsetID)
-
getDbpediaURL
public String getDbpediaURL()
Description copied from interface:BabelSynsetOcc
The DBpedia URL associated to this Babelnet synset occurrence- Specified by:
getDbpediaURL
in interfaceBabelSynsetOcc
- Returns:
-
setDbpediaURL
public void setDbpediaURL(String dbpediaURL)
-
getGolbalScore
public Double getGolbalScore()
Description copied from interface:BabelSynsetOcc
The global score associated to this Babelnet synset occurrence- Specified by:
getGolbalScore
in interfaceBabelSynsetOcc
- Returns:
-
setGolbalScore
public void setGolbalScore(Double golbalScore)
-
getCoherenceScore
public Double getCoherenceScore()
Description copied from interface:BabelSynsetOcc
The coherence score asscoiated to this Babelnet synset occurrence- Specified by:
getCoherenceScore
in interfaceBabelSynsetOcc
- Returns:
-
setCoherenceScore
public void setCoherenceScore(Double coherenceScore)
-
getScore
public Double getScore()
Description copied from interface:BabelSynsetOcc
The score associated to this Babelnet synset occurrence- Specified by:
getScore
in interfaceBabelSynsetOcc
- Returns:
-
setScore
public void setScore(Double score)
-
getSource
public String getSource()
Description copied from interface:BabelSynsetOcc
The source associated to this Babelnet synset occurrence- Specified by:
getSource
in interfaceBabelSynsetOcc
- Returns:
-
setSource
public void setSource(String source)
-
getNumTokens
public Integer getNumTokens()
Description copied from interface:BabelSynsetOcc
The number of tokens covered by this Babelnet synset occurrence- Specified by:
getNumTokens
in interfaceBabelSynsetOcc
- Returns:
-
setNumTokens
public void setNumTokens(Integer numTokens)
-
getSentenceIdWithTerm
public Integer getSentenceIdWithTerm()
Description copied from interface:BabelSynsetOcc
Get the id of the sentence that includes the Babelnet synset occurrence- Specified by:
getSentenceIdWithTerm
in interfaceBabelSynsetOcc
- Returns:
-
asString
public String asString(boolean compactOutput)
Description copied from interface:BabelSynsetOcc
String representation of the object- Specified by:
asString
in interfaceBabelSynsetOcc
- Returns:
-
-