Skip to content

Commit 0096e90

Browse files
author
Marcin Kardas
committed
Do not require arxiv id
1 parent 6038694 commit 0096e90

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

parse_references.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self):
2828
def parse_refs(self, p):
2929
for d in extract_refs(p):
3030
if not d["ref_id"].startswith("pwc-"):
31-
key = d["paper_arxiv_id"] + d["ref_id"]
31+
key = p.arxiv_no_version + d["ref_id"]
3232
if key not in self.cache:
3333
new_id = self.refsdb.add_reference_string(d['ref_str'])
3434
if new_id is not None:

sota_extractor2/data/references.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ def extract_refs(p):
370370
if m:
371371
ref_id, ref_str = m.groups()
372372
yield {
373-
"paper_arxiv_id": p.arxiv_no_version,
374373
"ref_id": ref_id,
375374
"ref_str": ref_str.strip(r'\s')
376375
}

0 commit comments

Comments
 (0)