Пример #1
0
 /// <summary>
 /// Constructor for setting docID, sentenceIndex, and
 /// index without any other annotations.
 /// </summary>
 /// <param name="docId">The document ID (arbitrary string)</param>
 /// <param name="sentenceIndex">The sentence number in the document (normally 0-based)</param>
 /// <param name="index">The index of the word in the sentence (normally 0-based)</param>
 public IndexedWord(string docId, int sentenceIndex, int index)
 {
     label = new CoreLabel();
     label.Set(typeof(CoreAnnotations.DocIdAnnotation), docId);
     label.Set(typeof(CoreAnnotations.SentenceIndexAnnotation), sentenceIndex);
     label.Set(typeof(CoreAnnotations.IndexAnnotation), index);
 }
Пример #2
0
 public /*<VALUE> VALUE*/ object Set(/*Class<? extends TypesafeMap.Key<VALUE>>*/ Type key, /*VALUE*/ object value)
 {
     return(label.Set(key, value));
 }