Class SynsetID
java.lang.Object
it.uniroma1.lcl.kb.ResourceID
it.uniroma1.lcl.kb.SynsetID
- Direct Known Subclasses:
BabelSynsetID, WordNetSynsetID
-
Field Summary
Fields inherited from class ResourceID
id, language, pos, source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe offset without prefix (e.g., wn:, bn:, wa:, wn2020:, oewn:)protected abstract booleanisValid()Returns true if the synset ID is validMethods inherited from class ResourceID
equals, getID, getLanguage, getPOS, getSource, hashCode, toString, toSynsets, toSynsets
-
Constructor Details
-
SynsetID
- Throws:
InvalidSynsetIDException
-
-
Method Details
-
isValid
protected abstract boolean isValid()Returns true if the synset ID is valid- Returns:
- a boolean with the synset ID validity
-
getSimpleOffset
The offset without prefix (e.g., wn:, bn:, wa:, wn2020:, oewn:)- Returns:
- simpleOffset the simple offset without prefix
-