We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f3087 commit 9ac166aCopy full SHA for 9ac166a
eld/tests/test_detector.py
@@ -68,7 +68,8 @@ def test_load_ngrams_detect():
68
def test_accuracy_m_bigtest():
69
# TODO use importlib or pathlib to open txt file as package eld.tests.data resource
70
detector = LanguageDetector('ngramsM60')
71
- file = open('data/big-test.txt', encoding='utf-8') # '../../benchmark/big-test.txt'
+ file = open( os.path.dirname(__file__) + '/data/big-test.txt', encoding='utf-8')
72
+ # '../../benchmark/big-test.txt'
73
content = file.read()
74
file.close()
75
lines = content.strip().split("\n")
0 commit comments