nasa-jpl-cord-19 / covid19-knowledge-graph

Builds a knowledge graph from the [COVID-19 Open Research Dataset (CORD-19)](https://pages.semanticscholar.org/coronavirus-research) dataset.
Apache License 2.0
16 stars 3 forks source link

Destination file processing in for loop? #2

Open philipsoutham opened 4 years ago

philipsoutham commented 4 years ago

@lewismc Continuing from https://github.com/nasa-jpl-cord-19/covid19-knowledge-graph/pull/1

Looks like you fixed the output problem, but introduced a new problem by putting the opening of the destination file within the for loop.

https://github.com/nasa-jpl-cord-19/covid19-knowledge-graph/blob/2d2f1328a95c9527d7c7327886e40cbb45b8f6dc/src/main/scala/gov/nasa/jpl/covid19_textmining_kaggle/covid19_knowledge_graph.scala#L202-L206