public virtual EntityMention MakeEntityMention(ICoreMap sentence, int start, int end, string label, string identifier) { Span span = new Span(start, end); string type = null; string subtype = null; if (!label.StartsWith("B-") && !label.StartsWith("I-")) { type = label; subtype = null; } else { // TODO: add support for subtypes! (needed at least in ACE) type = Sharpen.Runtime.Substring(label, 2); subtype = null; } // TODO: add support for subtypes! (needed at least in ACE) EntityMention entity = entityMentionFactory.ConstructEntityMention(identifier, sentence, span, span, type, subtype, null); ICounter <string> probs = new ClassicCounter <string>(); probs.SetCount(entity.GetType(), 1.0); entity.SetTypeProbabilities(probs); return(entity); }