Skip to content

Commit 43d7472

Browse files
committed
Fix error in importing journal abbreviations file
1 parent 06cc382 commit 43d7472

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

asreviewcontrib/preprocess/deduplication/dd_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import csv
22
import logging
3+
import os
34
import re
45

56
from unidecode import unidecode
@@ -22,8 +23,11 @@
2223
]
2324

2425
# Dictionary of journal name abbreviations and full forms
26+
journal_abbr_filepath = os.path.join(
27+
os.path.dirname(__file__), "all_journal_abbreviations.csv"
28+
)
2529

26-
with open("all_journal_abbreviations.csv", "r") as f:
30+
with open(journal_abbr_filepath, "r") as f:
2731
reader = csv.reader(f)
2832
all_journal_abbr = {}
2933

0 commit comments

Comments
 (0)