Package it.uniroma1.lcl.kb
Class SynsetID
- java.lang.Object
-
- it.uniroma1.lcl.kb.ResourceID
-
- it.uniroma1.lcl.kb.SynsetID
-
- Direct Known Subclasses:
BabelSynsetID
,WordNetSynsetID
public abstract class SynsetID extends ResourceID
A unique identifier for aSynset
.- Author:
- navigli
-
-
Field Summary
-
Fields inherited from class it.uniroma1.lcl.kb.ResourceID
id, language, pos, source
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SynsetID(String id, SenseSource source)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getSimpleOffset()
The offset without prefix (e.g., wn:, bn:, wa:, wn2020:, oewn:)protected abstract boolean
isValid()
Returns true if the synset ID is valid-
Methods inherited from class it.uniroma1.lcl.kb.ResourceID
equals, getID, getLanguage, getPOS, getSource, hashCode, toString, toSynsets, toSynsets
-
-
-
-
Constructor Detail
-
SynsetID
protected SynsetID(String id, SenseSource source) throws InvalidSynsetIDException
- Throws:
InvalidSynsetIDException
-
-
Method Detail
-
isValid
protected abstract boolean isValid()
Returns true if the synset ID is valid- Returns:
- a boolean with the synset ID validity
-
getSimpleOffset
public String getSimpleOffset()
The offset without prefix (e.g., wn:, bn:, wa:, wn2020:, oewn:)- Returns:
- simpleOffset the simple offset without prefix
-
-