-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
Can you explain the code at
processors/library/src/main/scala/org/clulab/serialization/DocumentSerializer.scala
Lines 110 to 118 in a589771
// 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.
Metadata
Metadata
Assignees
Labels
No labels