tmnt 0.7.0b20231226__tar.gz → 0.7.4b20231227__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. tmnt-0.7.4b20231227/PKG-INFO +43 -0
  2. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/README.md +1 -1
  3. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/setup.py +11 -19
  4. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/estimator.py +2 -2
  5. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/inference.py +0 -1
  6. tmnt-0.7.4b20231227/tmnt.egg-info/PKG-INFO +43 -0
  7. tmnt-0.7.0b20231226/PKG-INFO +0 -14
  8. tmnt-0.7.0b20231226/tmnt.egg-info/PKG-INFO +0 -14
  9. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/LICENSE +0 -0
  10. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/NOTICE +0 -0
  11. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/setup.cfg +0 -0
  12. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/__init__.py +0 -0
  13. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/bert_handling.py +0 -0
  14. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/classifier/__init__.py +0 -0
  15. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/classifier/load_data.py +0 -0
  16. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/classifier/model.py +0 -0
  17. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/classifier/train_sparse.py +0 -0
  18. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/common_params.py +0 -0
  19. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/configuration.py +0 -0
  20. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/data_loading.py +0 -0
  21. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/distribution.py +0 -0
  22. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/embeddings/__init__.py +0 -0
  23. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/embeddings/data.py +0 -0
  24. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/embeddings/executors.py +0 -0
  25. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/embeddings/model.py +0 -0
  26. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/embeddings/train.py +0 -0
  27. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/eval_npmi.py +0 -0
  28. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/modeling.py +0 -0
  29. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/preprocess/__init__.py +0 -0
  30. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/preprocess/tokenizer.py +0 -0
  31. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/preprocess/vectorizer.py +0 -0
  32. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/selector.py +0 -0
  33. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/trainer.py +0 -0
  34. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/utils/__init__.py +0 -0
  35. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/utils/csv2json.py +0 -0
  36. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/utils/log_utils.py +0 -0
  37. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/utils/mat_utils.py +0 -0
  38. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/utils/ngram_helpers.py +0 -0
  39. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/utils/pubmed_utils.py +0 -0
  40. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/utils/random.py +0 -0
  41. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt/utils/recalibrate.py +0 -0
  42. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt.egg-info/SOURCES.txt +0 -0
  43. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt.egg-info/dependency_links.txt +0 -0
  44. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt.egg-info/requires.txt +0 -0
  45. {tmnt-0.7.0b20231226 → tmnt-0.7.4b20231227}/tmnt.egg-info/top_level.txt +0 -0
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.1
2
+ Name: tmnt
3
+ Version: 0.7.4b20231227
4
+ Summary: Topic modeling neural toolkit
5
+ Home-page: https://github.com/mitre/tmnt.git
6
+ Author: The MITRE Corporation
7
+ Author-email: wellner@mitre.org
8
+ License: Apache
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ License-File: NOTICE
16
+ Requires-Dist: optuna
17
+ Requires-Dist: mantichora>=0.9.5
18
+ Requires-Dist: transformers[torch]
19
+ Requires-Dist: torcheval
20
+ Requires-Dist: pyLDAvis==3.4.0
21
+ Requires-Dist: MarkupSafe>=2.0
22
+ Requires-Dist: joblib>=0.8.4
23
+ Requires-Dist: future>=0.18.2
24
+ Requires-Dist: funcy>=1.16
25
+ Requires-Dist: pandas==1.5.3
26
+ Requires-Dist: pyOpenSSL==18.0.0
27
+ Requires-Dist: PySocks==1.6.8
28
+ Requires-Dist: sacremoses>=0.0.38
29
+ Requires-Dist: sentence-splitter==1.4
30
+ Requires-Dist: umap-learn==0.4.6
31
+ Requires-Dist: tabulate>=0.8.7
32
+ Requires-Dist: torch>=1.13.0
33
+ Requires-Dist: torchtext>=0.13.0
34
+
35
+ The Topic Modeling Neural Toolkit (TMNT) is a software library that enables training
36
+ topic models as neural network-based variational auto-encoders.
37
+
38
+ Current stable version is: 0.7.04
39
+
40
+ Documentation can be found here: https://tmnt.readthedocs.io/en/stable/
41
+
42
+ The latest development version documentation is here: https://tmnt.readthedocs.io/en/latest
43
+
@@ -1,7 +1,7 @@
1
1
  The Topic Modeling Neural Toolkit (TMNT) is a software library that enables training
2
2
  topic models as neural network-based variational auto-encoders.
3
3
 
4
- Current stable version is: 0.6.3
4
+ Current stable version is: 0.7.04
5
5
 
6
6
  Documentation can be found here: https://tmnt.readthedocs.io/en/stable/
7
7
 
@@ -2,9 +2,9 @@ import os
2
2
  from os import environ
3
3
  from setuptools import setup, find_packages
4
4
  from setuptools.command.install import install
5
+ from pathlib import Path
5
6
 
6
- with open(os.path.join(os.path.dirname(__file__), 'VERSION')) as version_file:
7
- version = version_file.read().strip()
7
+ version = '0.7.04'
8
8
 
9
9
  try:
10
10
  if not os.getenv('RELEASE'):
@@ -15,6 +15,11 @@ try:
15
15
  except Exception:
16
16
  pass
17
17
 
18
+
19
+ this_directory = Path(__file__).parent
20
+ long_description = (this_directory / "README.md").read_text()
21
+
22
+
18
23
  if __name__ == '__main__':
19
24
  setup_requires = [
20
25
  'numpy>=1.5.0'
@@ -41,26 +46,13 @@ if __name__ == '__main__':
41
46
  'torchtext>=0.13.0'
42
47
  ]
43
48
 
44
- class GPUCommand(install):
45
- user_options = install.user_options + [
46
- ('gpu', None, 'GPU install option'),
47
- ]
48
-
49
- def initialize_options(self):
50
- install.initialize_options(self)
51
- self.gpu = None
52
-
53
- def finalize_options(self):
54
- install.finalize_options(self)
55
-
56
- def run(self):
57
- install.run(self)
58
-
59
- setup(name=("tmnt-cu101" if environ.get('USE_CUDA') == '1' else "tmnt"),
49
+ setup(name=("tmnt"),
60
50
  version=version,
61
51
  author="The MITRE Corporation",
62
52
  author_email="wellner@mitre.org",
63
53
  description="Topic modeling neural toolkit",
54
+ long_description=long_description,
55
+ long_description_content_type='text/markdown',
64
56
  url="https://github.com/mitre/tmnt.git",
65
57
  license='Apache',
66
58
  classifiers = [
@@ -68,7 +60,7 @@ if __name__ == '__main__':
68
60
  "License :: OSI Approved :: Apache Software License",
69
61
  "Operating System :: OS Independent"
70
62
  ],
71
- python_requires='>=3.7',
63
+ python_requires='>=3.8',
72
64
  setup_requires=setup_requires,
73
65
  install_requires=install_requires,
74
66
  packages=find_packages())
@@ -1275,8 +1275,8 @@ class SeqBowEstimator(BaseEstimator):
1275
1275
  vectorizer_file = os.path.join(model_dir, ('vectorizer.pkl' + suffix))
1276
1276
  with open(vectorizer_file, 'wb') as f:
1277
1277
  pickle.dump(vectorizer, f)
1278
- with open(conf_file, 'w') as f:
1279
- f.write(specs)
1278
+ with open(conf_file, 'w') as f:
1279
+ f.write(specs)
1280
1280
  torch.save(self.vocabulary, vocab_file)
1281
1281
 
1282
1282
 
@@ -65,7 +65,6 @@ class BaseInferencer(object):
65
65
  def get_pyldavis_details(self, sp_vec_file_or_X, y=None):
66
66
  w_pr, dt_matrix, doc_lengths, term_cnts = self.get_model_details(sp_vec_file_or_X, y=y)
67
67
  d1 = w_pr.cpu().detach().numpy().tolist()
68
- print("dt_matrix type = {}".format(type(dt_matrix)))
69
68
  d2 = list(map(lambda x: x.tolist(), dt_matrix))
70
69
  doc_lengths = np.array(doc_lengths)
71
70
  d3 = list(doc_lengths.squeeze())
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.1
2
+ Name: tmnt
3
+ Version: 0.7.4b20231227
4
+ Summary: Topic modeling neural toolkit
5
+ Home-page: https://github.com/mitre/tmnt.git
6
+ Author: The MITRE Corporation
7
+ Author-email: wellner@mitre.org
8
+ License: Apache
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ License-File: NOTICE
16
+ Requires-Dist: optuna
17
+ Requires-Dist: mantichora>=0.9.5
18
+ Requires-Dist: transformers[torch]
19
+ Requires-Dist: torcheval
20
+ Requires-Dist: pyLDAvis==3.4.0
21
+ Requires-Dist: MarkupSafe>=2.0
22
+ Requires-Dist: joblib>=0.8.4
23
+ Requires-Dist: future>=0.18.2
24
+ Requires-Dist: funcy>=1.16
25
+ Requires-Dist: pandas==1.5.3
26
+ Requires-Dist: pyOpenSSL==18.0.0
27
+ Requires-Dist: PySocks==1.6.8
28
+ Requires-Dist: sacremoses>=0.0.38
29
+ Requires-Dist: sentence-splitter==1.4
30
+ Requires-Dist: umap-learn==0.4.6
31
+ Requires-Dist: tabulate>=0.8.7
32
+ Requires-Dist: torch>=1.13.0
33
+ Requires-Dist: torchtext>=0.13.0
34
+
35
+ The Topic Modeling Neural Toolkit (TMNT) is a software library that enables training
36
+ topic models as neural network-based variational auto-encoders.
37
+
38
+ Current stable version is: 0.7.04
39
+
40
+ Documentation can be found here: https://tmnt.readthedocs.io/en/stable/
41
+
42
+ The latest development version documentation is here: https://tmnt.readthedocs.io/en/latest
43
+
@@ -1,14 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tmnt
3
- Version: 0.7.0b20231226
4
- Summary: Topic modeling neural toolkit
5
- Home-page: https://github.com/mitre/tmnt.git
6
- Author: The MITRE Corporation
7
- Author-email: wellner@mitre.org
8
- License: Apache
9
- Description: UNKNOWN
10
- Platform: UNKNOWN
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Operating System :: OS Independent
14
- Requires-Python: >=3.7
@@ -1,14 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tmnt
3
- Version: 0.7.0b20231226
4
- Summary: Topic modeling neural toolkit
5
- Home-page: https://github.com/mitre/tmnt.git
6
- Author: The MITRE Corporation
7
- Author-email: wellner@mitre.org
8
- License: Apache
9
- Description: UNKNOWN
10
- Platform: UNKNOWN
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Operating System :: OS Independent
14
- Requires-Python: >=3.7
File without changes
File without changes
File without changes