Class Tags


  • public class Tags
    extends Object
    • Constructor Detail

      • Tags

        public Tags​(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 String[] getTags()
        gets you the all the labels as a string array.
      • nrTags

        public int nrTags()
      • contains

        public boolean contains​(String label)