Пример #1
0
 /// <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());
         }
     }
 }
Пример #2
0
 public string GetWord()
 {
     return(label.GetWord());
 }