コード例 #1
0
 /// <summary>Copy c'tor that performs deep copy of the sentences in the original dataset</summary>
 public ExtractionDataSet(Edu.Stanford.Nlp.IE.Machinereading.Structure.ExtractionDataSet original)
 {
     sentences = new List <ExtractionSentence>();
     foreach (ExtractionSentence sent in original.GetSentences())
     {
         // deep copy of the sentence: we create new entity/relation/event lists here
         // however, we do not deep copy the ExtractionObjects themselves!
         ExtractionSentence sentCopy = new ExtractionSentence(sent);
         sentences.Add(sentCopy);
     }
 }
コード例 #2
0
 public virtual void AddSentence(ExtractionSentence sentence)
 {
     this.sentences.Add(sentence);
 }