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

[error] (run-main-0) java.util.NoSuchElementException: head of empty array #4

Open oratosa opened 3 years ago

oratosa commented 3 years ago

I tried both of patterns to run the program but I got failed the running. I would like some advice if you know any solution.

What I did is as below:

lewismc commented 3 years ago

Hi @oratosa I apologize for the late reply. I was very busy. First thing first, please ensure you are using master branch. Secondly, make sure you have the OpenIE server running on localhost:8000

The NoSuchElementException indicates to me that your input data is not structured properly. For example, when I run the following, I am able to iteratively process the files without issue.

sbt:covid19_knowledge_graph> run /Users/lmcgibbn/Downloads/covid19-knowledge-graph/data/comm_use_subset /Users/lmcgibbn/Downloads/covid19-knowledge-graph/data/scispacy/individual_files
[info] running gov.nasa.jpl.covid19_knowledge_graph.covid19_knowledge_graph /Users/lmcgibbn/Downloads/covid19-knowledge-graph/data/comm_use_subset /Users/lmcgibbn/Downloads/covid19-knowledge-graph/data/scispacy/individual_files
      loading /Users/lmcgibbn/Downloads/covid19-knowledge-graph/data/scispacy/individual_files/000b7d1517ceebb34e1e3e817695b6de03e2fa78.json
  loading /Users/lmcgibbn/Downloads/covid19-knowledge-graph/data/comm_use_subset/000b7d1517ceebb34e1e3e817695b6de03e2fa78.json
...

Do you have the scispacy dataset as your second parameter?