Browse Source

Bugfix in module importation

Ali 3 years ago
parent
commit
f47c9adca0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pandasToBrat/__init__.py
  2. 1 1
      setup.py

+ 1 - 1
pandasToBrat/__init__.py

@@ -2,7 +2,7 @@ import re
 import os
 import pandas as pd
 import numpy as np
-from pandasToBrat.extract_tools import default_tokenizer as _default_tokenizer
+from .extract_tools import default_tokenizer as _default_tokenizer
 
 def _getDictionnaryKeys(dictionnary):
     """

+ 1 - 1
setup.py

@@ -8,5 +8,5 @@ setup(name='pandasToBrat',
       author_email='contact@alibellamine.me',
       description='Function for Brat folder administration from Python and Pandas object.',
       long_description=open('README.md').read(),
-      packages = ["pandasToBrat"]
+      packages = ["pandasToBrat", "pandasToBrat/extract_tools"]
     )