UniTok 3.0.5__tar.gz → 3.0.6__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 (29) hide show
  1. {UniTok-3.0.5 → UniTok-3.0.6}/PKG-INFO +1 -1
  2. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/unidep.py +2 -4
  3. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok.egg-info/PKG-INFO +1 -1
  4. {UniTok-3.0.5 → UniTok-3.0.6}/setup.py +1 -1
  5. {UniTok-3.0.5 → UniTok-3.0.6}/README.md +0 -0
  6. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/__init__.py +0 -0
  7. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/analysis/__init__.py +0 -0
  8. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/analysis/lengths.py +0 -0
  9. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/analysis/plot.py +0 -0
  10. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/cols.py +0 -0
  11. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/column.py +0 -0
  12. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/global_setting.py +0 -0
  13. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/meta.py +0 -0
  14. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/tok/__init__.py +0 -0
  15. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/tok/bert_tok.py +0 -0
  16. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/tok/entity_tok.py +0 -0
  17. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/tok/id_tok.py +0 -0
  18. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/tok/number_tok.py +0 -0
  19. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/tok/seq_tok.py +0 -0
  20. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/tok/split_tok.py +0 -0
  21. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/tok/tok.py +0 -0
  22. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/unitok.py +0 -0
  23. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/vocab.py +0 -0
  24. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok/vocabs.py +0 -0
  25. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok.egg-info/SOURCES.txt +0 -0
  26. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok.egg-info/dependency_links.txt +0 -0
  27. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok.egg-info/requires.txt +0 -0
  28. {UniTok-3.0.5 → UniTok-3.0.6}/UniTok.egg-info/top_level.txt +0 -0
  29. {UniTok-3.0.5 → UniTok-3.0.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: UniTok
3
- Version: 3.0.5
3
+ Version: 3.0.6
4
4
  Summary: Unified Tokenizer
5
5
  Home-page: https://github.com/Jyonn/UnifiedTokenizer
6
6
  Author: Jyonn Liu
@@ -1,4 +1,3 @@
1
- import json
2
1
  import os
3
2
  import random
4
3
  import warnings
@@ -17,14 +16,13 @@ class UniDep:
17
16
 
18
17
  def __init__(self, store_dir, silent=False):
19
18
  self.store_dir = os.path.expanduser(store_dir)
19
+ self.meta = Meta(self.store_dir)
20
+
20
21
  self.silent = silent
21
22
 
22
23
  self.cached = False
23
24
  self.cached_samples = []
24
25
 
25
- self.meta_path = os.path.join(self.store_dir, 'meta.data.json')
26
- self.meta = Meta(**json.load(open(self.meta_path)), store_dir=self.store_dir)
27
-
28
26
  self.data_path = os.path.join(self.store_dir, 'data.npy')
29
27
  self.data = np.load(self.data_path, allow_pickle=True)
30
28
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: UniTok
3
- Version: 3.0.5
3
+ Version: 3.0.6
4
4
  Summary: Unified Tokenizer
5
5
  Home-page: https://github.com/Jyonn/UnifiedTokenizer
6
6
  Author: Jyonn Liu
@@ -6,7 +6,7 @@ long_description = (this_directory / "README.md").read_text()
6
6
 
7
7
  setup(
8
8
  name='UniTok',
9
- version='3.0.5',
9
+ version='3.0.6',
10
10
  keywords=['token', 'tokenizer', 'bert'],
11
11
  description='Unified Tokenizer',
12
12
  long_description=long_description,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes