@enoriega,
Can you explain the code at
|
// TODO: Hack by Enrique to resolve the document object for the relations |
|
for(sen <- doc.sentences){ |
|
sen.relations match { |
|
case Some(relations) => |
|
val newRelations = relations.map(r => RelationTriple(r.confidence, r.subjectInterval, r.relationInterval, r.objectInterval)) |
|
sen.relations = Some(newRelations) |
|
case None => () |
|
} |
|
} |
?
It seems like it is just making a copy of all the relations in a sentence and writing them back to the sentence. Is there some side effect that I am missing? Thanks.
@enoriega,
Can you explain the code at
processors/library/src/main/scala/org/clulab/serialization/DocumentSerializer.scala
Lines 110 to 118 in a589771
It seems like it is just making a copy of all the relations in a sentence and writing them back to the sentence. Is there some side effect that I am missing? Thanks.