Skip to content

Commit

Permalink
Update predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethjr authored Apr 26, 2019
1 parent ccdb977 commit cb5d527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
test_file = jsonlines.open(test_file)
test_set = []

claim_id = 14001
claim_id = 1

wiki_entities = os.listdir(wiki_split_docs_dir)
for i in range(len(wiki_entities)):
Expand All @@ -36,7 +36,7 @@
test_set.append(lines)

with jsonlines.open(results_file, mode='w') as writer:
for example in test_set[14000:]:
for example in test_set:
relevant_docs,entities = doc_retrieval.getRelevantDocs(example['claim'],wiki_entities,"StanfordNER",nlp)
relevant_docs = list(set(relevant_docs))
print(example['claim'])
Expand Down

0 comments on commit cb5d527

Please sign in to comment.