Package de.julielab.jnet.tagger
Class Tags
- java.lang.Object
-
- de.julielab.jnet.tagger.Tags
-
public class Tags extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringtype
-
Constructor Summary
Constructors Constructor Description Tags(java.lang.String filename)the constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.String label)cc.mallet.types.LabelAlphabetgetAlphabet()gets you the LabelAlphabet representation of the tags.java.lang.String[]getTags()gets you the all the labels as a string array.intnrTags()
-
-
-
Constructor Detail
-
Tags
public Tags(java.lang.String filename)
the constructor.- Parameters:
filename- full path to file in which the tags are stored. One tag each line. Make sure, there is also an outside tag "O". Further you should check, that either there is always a begin tag "B-" or never, as this is not counterchecked by this module.
-
-
Method Detail
-
getAlphabet
public cc.mallet.types.LabelAlphabet getAlphabet()
gets you the LabelAlphabet representation of the tags.
-
getTags
public java.lang.String[] getTags()
gets you the all the labels as a string array.
-
nrTags
public int nrTags()
-
contains
public boolean contains(java.lang.String label)
-
-