public class WordNetSynsetID extends SynsetID
Example:
ResourceID rID = new WordNetSynsetID("wn:00632820n");
Modifier and Type | Field and Description |
---|---|
static int |
ID_LENGTH |
static String |
ID_PREFIX |
id, language, pos, source
Constructor and Description |
---|
WordNetSynsetID(String id)
Version default
WordNetVersion.WN_30 |
WordNetSynsetID(String id,
it.uniroma1.lcl.jlt.wordnet.WordNetVersion version) |
Modifier and Type | Method and Description |
---|---|
String |
getSimpleOffset()
The offset without prefix (wn:)
|
it.uniroma1.lcl.jlt.wordnet.WordNetVersion |
getVersion()
Return the version of this
WordNetSynsetID |
boolean |
isValid()
Returns true if the synset ID is valid
|
protected void |
setMappingOffsets(HashMap<it.uniroma1.lcl.jlt.wordnet.WordNetVersion,List<String>> mappingVersion) |
List<WordNetSynsetID> |
toVersion(it.uniroma1.lcl.jlt.wordnet.WordNetVersion targetVersion)
|
equals, getID, getLanguage, getPOS, getSource, hashCode, toString
public static final String ID_PREFIX
public static final int ID_LENGTH
public WordNetSynsetID(String id) throws InvalidBabelSynsetIDException
WordNetVersion.WN_30
id
- InvalidBabelSynsetIDException
public WordNetSynsetID(String id, it.uniroma1.lcl.jlt.wordnet.WordNetVersion version) throws InvalidBabelSynsetIDException
id
- version
- InvalidBabelSynsetIDException
public boolean isValid()
SynsetID
public String getSimpleOffset()
public List<WordNetSynsetID> toVersion(it.uniroma1.lcl.jlt.wordnet.WordNetVersion targetVersion)
WordNetSynsetID
spublic it.uniroma1.lcl.jlt.wordnet.WordNetVersion getVersion()
WordNetSynsetID
WordNetVersion
Copyright © 2016. All rights reserved.