381030 (1) [Avatar] Offline
book example: from nlpia.data import get_data

research-hack: from nlpia.data.loaders import get_data

Is "loaders" for the beta version?
428125 (29) [Avatar] Offline
Good catch. We need to be consistent. For now, using `nlpia.data.loaders.get_data` is the right way to import data loaders.
475801 (2) [Avatar] Offline
Yet another small issue caused by renamed constants
>>> from nlpia.data.loaders import get_data
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/devteam/Code/nlpia/nlpia/data/loaders.py", line 14, in <module>
    from pugnlp.constants import MAX_INT64 as MAX_INT
ImportError: cannot import name 'MAX_INT64'

Fix is easy:
$ git diff
diff --git a/nlpia/data/loaders.py b/nlpia/data/loaders.py
index a275a98..1879b35 100644
--- a/nlpia/data/loaders.py
+++ b/nlpia/data/loaders.py
@@ -11,8 +11,8 @@ from nlpia.constants import logging, DATA_PATH, BIGDATA_PATH

 from tqdm import tqdm
 from pugnlp.futil import path_status, find_files
-from pugnlp.constants import MAX_INT64 as MAX_INT
-from pugnlp.constants import MIN_INT64 as MIN_INT
+from pugnlp.constants import INT64_MAX as MAX_INT
+from pugnlp.constants import INT64_MIN as MIN_INT
 import pandas as pd
 import tarfile