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 it.uniroma1.lcl.jlt.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)
|
it.uniroma1.lcl.jlt.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
BabelSynsets |
List<BabelSynset> |
toSynsets(Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
Converts the ID to a collection of
BabelSynsets |
protected final String id
ResourceIDprotected it.uniroma1.lcl.jlt.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 it.uniroma1.lcl.jlt.util.POS getPOS()
public SenseSource getSource()
public it.uniroma1.lcl.jlt.util.Language getLanguage()
public List<BabelSynset> toSynsets()
BabelSynsetspublic List<BabelSynset> toSynsets(Collection<it.uniroma1.lcl.jlt.util.Language> targetLanguages)
BabelSynsetstargetLanguages - the languages to populate the synsets withCopyright © 2016–2022. All rights reserved.