/// <summary> /// Copy Constructor - relies on {@link CoreLabel} copy constructor. /// It will set the value, and if the word is not set otherwise, set /// the word to the value. /// </summary> /// <param name="w">A Label to initialize this IndexedWord from</param> public IndexedWord(ILabel w) { if (w is CoreLabel) { this.label = (CoreLabel)w; } else { label = new CoreLabel(w); if (label.GetWord() == null) { label.SetWord(label.Value()); } } }
public string GetWord() { return(label.GetWord()); }