/// <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); } }
public virtual void AddSentence(ExtractionSentence sentence) { this.sentences.Add(sentence); }