Class 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.
    • Method Detail

      • getId

        public Integer getId()
        Description copied from interface: BabelSynsetOcc
        Document-wide unambiguous Babelnet synset occurrence Id
        Specified by:
        getId in interface BabelSynsetOcc
        Returns:
        document-wide unambiguous term Id
      • setId

        public void setId​(Integer id)
      • setText

        public void setText​(String text)
      • getInSentenceId

        public Integer getInSentenceId()
      • setInSentenceId

        public void setInSentenceId​(Integer inSentenceId)
      • 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 interface BabelSynsetOcc
        Returns:
      • setSynsetID

        public void setSynsetID​(String synsetID)
      • setDbpediaURL

        public void setDbpediaURL​(String dbpediaURL)
      • setGolbalScore

        public void setGolbalScore​(Double golbalScore)
      • setCoherenceScore

        public void setCoherenceScore​(Double coherenceScore)
      • setScore

        public void setScore​(Double score)
      • setSource

        public void setSource​(String source)
      • setNumTokens

        public void setNumTokens​(Integer numTokens)
      • asString

        public String asString​(boolean compactOutput)
        Description copied from interface: BabelSynsetOcc
        String representation of the object
        Specified by:
        asString in interface BabelSynsetOcc
        Returns: