コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public virtual void AddEventMention(EventMention @event)
 {
     eventMentions.Add(@event);
 }