public class BabelSynsetID extends SynsetID
Example:
ResourceID rID = new BabelSynsetID("bn:03083790n");
Modifier and Type | Field and Description |
---|---|
static int |
ID_LENGTH |
static String |
ID_PREFIX |
id, language, pos, source
Constructor and Description |
---|
BabelSynsetID(String id) |
Modifier and Type | Method and Description |
---|---|
List<BabelSynsetIDRelation> |
getRelatedIDs()
From a lightweight BabelSynsetID, creates the corresponding Babel synset
|
List<BabelSynsetIDRelation> |
getRelatedIDs(Collection<it.uniroma1.lcl.jlt.util.Language> filterLangs)
From a lightweight BabelSynsetID, creates the corresponding Babel synset
|
boolean |
isValid()
Returns true if the synset ID is valid
|
BabelSynset |
toBabelSynset()
From a lightweight BabelSynsetID, creates the corresponding Babel synset
|
BabelSynset |
toBabelSynset(Collection<it.uniroma1.lcl.jlt.util.Language> filterLangs)
From a lightweight BabelSynsetID, creates the corresponding Babel synset
|
equals, getID, getLanguage, getPOS, getSource, hashCode, toString
public static final String ID_PREFIX
public static final int ID_LENGTH
public BabelSynsetID(String id) throws InvalidBabelSynsetIDException
InvalidBabelSynsetIDException
public boolean isValid()
SynsetID
public BabelSynset toBabelSynset() throws IOException
IOException
public BabelSynset toBabelSynset(Collection<it.uniroma1.lcl.jlt.util.Language> filterLangs) throws IOException
filterLangs
- the languages in which the data are to be retrieved.IOException
public List<BabelSynsetIDRelation> getRelatedIDs() throws IOException
IOException
public List<BabelSynsetIDRelation> getRelatedIDs(Collection<it.uniroma1.lcl.jlt.util.Language> filterLangs) throws IOException
filterLangs
- the languages in which the data are to be retrieved.IOException
Copyright © 2016. All rights reserved.