Package org.fnlp.ml.types.alphabet

Examples of org.fnlp.ml.types.alphabet.LabelAlphabet.clear()


  private void addEnTag(AbstractTagger cl, String file) throws IOException {
    LabelAlphabet label = cl.factory.DefaultLabelAlphabet()
    HashMap<String, String> map = MyCollection.loadStringStringMap(c2ePath);
    cl.factory.remove("label-en");
    LabelAlphabet enLabel = cl.factory.buildLabelAlphabet("label-en");
    enLabel.clear();
    enLabel.setStopIncrement(false);
    for(int i=0;i<label.size();i++){
      String cn = label.lookupString(i);
      String en = map.get(cn);     
      if(en==null)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.