private void DoOneSentence(ICoreMap annotation) { string text = annotation.Get(typeof(CoreAnnotations.TextAnnotation)); IList <CoreLabel> tokens = segmenter.SegmentStringToTokenList(text); annotation.Set(typeof(CoreAnnotations.TokensAnnotation), tokens); }