public static void AddEventMention(ICoreMap sentence, EventMention arg) { IList <EventMention> l = sentence.Get(typeof(MachineReadingAnnotations.EventMentionsAnnotation)); if (l == null) { l = new List <EventMention>(); sentence.Set(typeof(MachineReadingAnnotations.EventMentionsAnnotation), l); } l.Add(arg); }
public virtual void AddEntity(string @event, EventMention em) { IList <EventMention> mentions = this.eventToEventMentions[@event]; if (mentions == null) { mentions = new List <EventMention>(); this.eventToEventMentions[@event] = mentions; } mentions.Add(em); }
public virtual void AddEventMention(EventMention @event) { eventMentions.Add(@event); }