You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using last commit on master branch,
calling the pipeline from radtext with this code, import radtext nlp = radtext.Pipeline()
falling to the following error:
loading model /Users/zakaria/.radtext/bllipparser/BLLIP-GENIA-PubMed ...
Traceback (most recent call last):
File "test.py", line 5, in
nlp = radtext.Pipeline()
File "../radtext/src/radtext/models/pipeline.py", line 98, in init
regex_actor.load_yml2(argv['--regex_patterns'])
File "../radtext/src/radtext/models/neg/match_regex.py", line 70, in load_yml2
for obj in objs['negation']:
KeyError: 'negation'
The text was updated successfully, but these errors were encountered:
I am using last commit on master branch, calling the pipeline from radtext with this code, import radtextnlp = radtext.Pipeline()
falling to the following error:
loading model /Users/zakaria/.radtext/bllipparser/BLLIP-GENIA-PubMed ... Traceback (most recent call last): File "test.py", line 5, in nlp = radtext.Pipeline() File "../radtext/src/radtext/models/pipeline.py", line 98, in init regex_actor.load_yml2(argv['--regex_patterns']) File "../radtext/src/radtext/models/neg/match_regex.py", line 70, in load_yml2 for obj in objs['negation']: KeyError: 'negation'
I had a similar issue when I first installed the package. I then looked closely into the regex_pattern.yml file that --regex_patterns points to which is located inside $Home/.radtext/resources/patterns and discovered that it wasn't containing the correct text. It was in fact containing an error 404 code.
Here is what I did to solve the problem:
I cloned the repository in to my downloads folder and navigated in to C:\Users\HI\Downloads\radtext\resources\patterns.
I then copied two files regex_pattern.yml and ngrex_pattern.yml from 1 into $Home/.radtext/resources/patterns . It asked me to replace the existing ones which I did, and that resolved the issue.
NB: I use wsl on my pc so the location of $Home/.radtext/resources/patterns might be different from yours. However, you should just try to locate the directory where --regex_patterns points to and make the changes.
I am using last commit on master branch,
calling the pipeline from radtext with this code,
import radtext
nlp = radtext.Pipeline()
falling to the following error:
loading model /Users/zakaria/.radtext/bllipparser/BLLIP-GENIA-PubMed ...
Traceback (most recent call last):
File "test.py", line 5, in
nlp = radtext.Pipeline()
File "../radtext/src/radtext/models/pipeline.py", line 98, in init
regex_actor.load_yml2(argv['--regex_patterns'])
File "../radtext/src/radtext/models/neg/match_regex.py", line 70, in load_yml2
for obj in objs['negation']:
KeyError: 'negation'
The text was updated successfully, but these errors were encountered: