public abstract class ResourceID extends Object
LKB.getSynset(ResourceID)
,
LKB.getSynsets(ResourceID...)
Modifier and Type | Field and Description |
---|---|
protected String |
id
Id of a
ResourceID |
protected it.uniroma1.lcl.jlt.util.Language |
language
Language of the resource ID, if available
|
protected com.babelscape.util.POS |
pos
POS of the resource ID, if available
|
protected SenseSource |
source
Source of the resource ID
|
Modifier | Constructor and Description |
---|---|
protected |
ResourceID(String id,
SenseSource source)
Builds the ResourceID
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getID()
Returns the
ResourceID ID |
it.uniroma1.lcl.jlt.util.Language |
getLanguage()
Gets the language associated with the given ID
(default is null)
|
com.babelscape.util.POS |
getPOS()
The part of speech tag associated with the given ID
(default is null).
|
SenseSource |
getSource()
Gets the source associated with the given ID
|
int |
hashCode() |
String |
toString() |
List<BabelSynset> |
toSynsets()
Converts the ID to a collection of
BabelSynset s |
List<BabelSynset> |
toSynsets(Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
Converts the ID to a collection of
BabelSynset s |
protected final String id
ResourceID
protected com.babelscape.util.POS pos
protected SenseSource source
protected it.uniroma1.lcl.jlt.util.Language language
protected ResourceID(String id, SenseSource source)
id
- id of the resourcesource
- source of the resourcepublic String getID()
ResourceID
IDResourceID
IDpublic com.babelscape.util.POS getPOS()
public SenseSource getSource()
public it.uniroma1.lcl.jlt.util.Language getLanguage()
public List<BabelSynset> toSynsets()
BabelSynset
spublic List<BabelSynset> toSynsets(Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
BabelSynset
stargetLanguages
- the languages to populate the synsets withCopyright © 2016–2018. All rights reserved.