Open Dawny33 opened 6 years ago
import os
import re
import sys
from collections import namedtuple
from io import StringIO
from os import path
from sentencesplit import sentencebreaks_to_newlines
# assume script in brat tools/ directory, extend path to find sentencesplit.py
sys.path.append(os.path.join(os.path.dirname(__file__), '../server/src'))
This was because the sys.path
was appended after the import, which leads to the problem where Python unable to find the module (in the anntoconll.py
file)
Moving the line which appends sys.path
to the top helped set the path.
I am getting the following ImportError when trying to run the file
tools/anntoconll.py
I am unable to find the file here or in
server/src/
too