You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/Semantic/CValue/Token.cs

84 lines
1.8 KiB

5 years ago
using System;
namespace ZeroLevel.Services.Semantic.CValue
{
public class Token
{
private String wordForm;
private String posTag;
private String chunkerTag;
private String lemma;
private int pos; //position inside the sentence?
public Token(String pWordForm)
{
wordForm = pWordForm;
}
public Token(String pWordForm, String pPostag)
{
wordForm = pWordForm;
posTag = pPostag;
}
public Token(String pWordForm, String pPostag, String pLemma)
{
wordForm = pWordForm;
posTag = pPostag;
lemma = pLemma;
}
public Token(String pWordForm, String pPostag, String pLemma, String pChunker)
{
wordForm = pWordForm;
posTag = pPostag;
lemma = pLemma;
chunkerTag = pChunker;
}
public String getWordForm()
{
return wordForm;
}
public void setWordForm(String wordForm)
{
this.wordForm = wordForm;
}
public String getPosTag()
{
return posTag;
}
public void setPosTag(String posTag)
{
this.posTag = posTag;
}
public override string ToString()
{
return wordForm + "\t" + posTag;
}
public String getLemma()
{
return lemma;
}
public void setLemma(String lemma)
{
this.lemma = lemma;
}
public String getChunkerTag()
{
return chunkerTag;
}
public void setChunkerTag(String chunkerTag)
{
this.chunkerTag = chunkerTag;
}
}

Powered by TurnKey Linux.