Class WordNetSynsetID


  • public class WordNetSynsetID
    extends SynsetID
    Constructs a resource identifier with the specified WordNet synset id.

    Usage example:

    ResourceID rID = new WordNetSynsetID("wn:00632820n");
    Author:
    navigli, vannella
    • Constructor Detail

      • WordNetSynsetID

        public WordNetSynsetID​(String id,
                               it.uniroma1.lcl.jlt.wordnet.WordNetVersion version)
                        throws InvalidSynsetIDException
        Constructs the WordNet synset ID
        Parameters:
        id - the synset ID string
        version - the WordNet version
        Throws:
        InvalidSynsetIDException - thrown if the synset ID is invalid
    • Method Detail

      • isValid

        protected boolean isValid()
        Description copied from class: SynsetID
        Returns true if the synset ID is valid
        Specified by:
        isValid in class SynsetID
        Returns:
        a boolean with the synset ID validity
      • getVersion

        public it.uniroma1.lcl.jlt.wordnet.WordNetVersion getVersion()
        Return the version of this WordNetSynsetID
        Returns:
        WordNetVersion
      • setMappingOffsets

        protected void setMappingOffsets​(HashMap<it.uniroma1.lcl.jlt.wordnet.WordNetVersion,​List<String>> versionMapping)