
it.unitn.disi.nlptools.data.Token Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s-match Show documentation
Show all versions of s-match Show documentation
A version of S-Match semantic matching framework for Open Data
The newest version!
package it.unitn.disi.nlptools.data;
import it.unitn.disi.smatch.data.ling.ISense;
import java.util.Collections;
import java.util.List;
/**
* Default token implementation.
*
* @author Aliaksandr Autayeu
*/
public class Token extends TextSpan implements IToken {
protected String lemma;
protected String posTag;
protected List senses = Collections.emptyList();
public Token() {
super();
}
public Token(String text) {
super(text);
}
public String getLemma() {
return lemma;
}
public void setLemma(String lemma) {
this.lemma = lemma;
}
public String getPOSTag() {
return posTag;
}
public void setPOSTag(String posTag) {
this.posTag = posTag;
}
public List getSenses() {
return senses;
}
public void setSenses(List senses) {
this.senses = senses;
}
@Override
public String toString() {
return "Token{" +
"text='" + text + '\'' +
", lemma='" + lemma + '\'' +
", posTag='" + posTag + '\'' +
", senses=" + senses +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy