public class Tags extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String label) |
cc.mallet.types.LabelAlphabet |
getAlphabet()
gets you the LabelAlphabet representation of the tags.
|
String[] |
getTags()
gets you the all the labels as a string array.
|
int |
nrTags() |
public String type
public Tags(String filename)
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.Copyright © 2019 JULIE Lab Jena, Germany. All rights reserved.