deeplotx 0.9.10__tar.gz → 0.9.11__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 (43) hide show
  1. {deeplotx-0.9.10 → deeplotx-0.9.11}/PKG-INFO +2 -2
  2. deeplotx-0.9.11/deeplotx/util/__init__.py +2 -0
  3. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx.egg-info/PKG-INFO +2 -2
  4. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx.egg-info/SOURCES.txt +1 -3
  5. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx.egg-info/requires.txt +1 -1
  6. {deeplotx-0.9.10 → deeplotx-0.9.11}/pyproject.toml +2 -2
  7. deeplotx-0.9.10/deeplotx/util/__init__.py +0 -2
  8. deeplotx-0.9.10/deeplotx/util/hash.py +0 -29
  9. deeplotx-0.9.10/deeplotx/util/read_file.py +0 -32
  10. {deeplotx-0.9.10 → deeplotx-0.9.11}/LICENSE +0 -0
  11. {deeplotx-0.9.10 → deeplotx-0.9.11}/README.md +0 -0
  12. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/__init__.py +0 -0
  13. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/encoder/__init__.py +0 -0
  14. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/encoder/encoder.py +0 -0
  15. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/encoder/long_text_encoder.py +0 -0
  16. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/encoder/longformer_encoder.py +0 -0
  17. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/ner/__init__.py +0 -0
  18. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/ner/base_ner.py +0 -0
  19. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/ner/bert_ner.py +0 -0
  20. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/ner/n2g/__init__.py +0 -0
  21. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/ner/named_entity.py +0 -0
  22. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/__init__.py +0 -0
  23. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/attention.py +0 -0
  24. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/auto_regression.py +0 -0
  25. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/base_neural_network.py +0 -0
  26. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/feed_forward.py +0 -0
  27. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/linear_regression.py +0 -0
  28. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/logistic_regression.py +0 -0
  29. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/long_context_auto_regression.py +0 -0
  30. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/long_context_recursive_sequential.py +0 -0
  31. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/multi_head_attention.py +0 -0
  32. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/multi_head_feed_forward.py +0 -0
  33. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/recursive_sequential.py +0 -0
  34. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/roformer_encoder.py +0 -0
  35. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/rope.py +0 -0
  36. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/nn/softmax_regression.py +0 -0
  37. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/similarity/__init__.py +0 -0
  38. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/similarity/distribution.py +0 -0
  39. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/similarity/set.py +0 -0
  40. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx/similarity/vector.py +0 -0
  41. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx.egg-info/dependency_links.txt +0 -0
  42. {deeplotx-0.9.10 → deeplotx-0.9.11}/deeplotx.egg-info/top_level.txt +0 -0
  43. {deeplotx-0.9.10 → deeplotx-0.9.11}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deeplotx
3
- Version: 0.9.10
3
+ Version: 0.9.11
4
4
  Summary: An out-of-the-box long-text NLP framework.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -15,7 +15,7 @@ Requires-Dist: tiktoken
15
15
  Requires-Dist: torch
16
16
  Requires-Dist: transformers
17
17
  Requires-Dist: typing-extensions
18
- Requires-Dist: vortezwohl>=0.0.8
18
+ Requires-Dist: vortezwohl>=0.0.10
19
19
  Requires-Dist: name4py>=0.1.4
20
20
  Dynamic: license-file
21
21
 
@@ -0,0 +1,2 @@
1
+ from vortezwohl.crypt.hash import *
2
+ from vortezwohl.io import *
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deeplotx
3
- Version: 0.9.10
3
+ Version: 0.9.11
4
4
  Summary: An out-of-the-box long-text NLP framework.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -15,7 +15,7 @@ Requires-Dist: tiktoken
15
15
  Requires-Dist: torch
16
16
  Requires-Dist: transformers
17
17
  Requires-Dist: typing-extensions
18
- Requires-Dist: vortezwohl>=0.0.8
18
+ Requires-Dist: vortezwohl>=0.0.10
19
19
  Requires-Dist: name4py>=0.1.4
20
20
  Dynamic: license-file
21
21
 
@@ -35,6 +35,4 @@ deeplotx/similarity/__init__.py
35
35
  deeplotx/similarity/distribution.py
36
36
  deeplotx/similarity/set.py
37
37
  deeplotx/similarity/vector.py
38
- deeplotx/util/__init__.py
39
- deeplotx/util/hash.py
40
- deeplotx/util/read_file.py
38
+ deeplotx/util/__init__.py
@@ -8,5 +8,5 @@ tiktoken
8
8
  torch
9
9
  transformers
10
10
  typing-extensions
11
- vortezwohl>=0.0.8
11
+ vortezwohl>=0.0.10
12
12
  name4py>=0.1.4
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "deeplotx"
3
- version = '0.9.10'
3
+ version = '0.9.11'
4
4
  description = "An out-of-the-box long-text NLP framework."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -15,6 +15,6 @@ dependencies = [
15
15
  "torch",
16
16
  "transformers",
17
17
  "typing-extensions",
18
- "vortezwohl>=0.0.8",
18
+ "vortezwohl>=0.0.10",
19
19
  "name4py>=0.1.4",
20
20
  ]
@@ -1,2 +0,0 @@
1
- from .hash import md5, sha1, sha256, sha512
2
- from .read_file import read_file, write_file, get_files
@@ -1,29 +0,0 @@
1
- import hashlib
2
-
3
-
4
- def md5(text: str) -> str:
5
- _hash = hashlib.md5()
6
- text_bytes = text.encode('utf-8')
7
- _hash.update(text_bytes)
8
- return _hash.hexdigest()
9
-
10
-
11
- def sha1(text: str) -> str:
12
- _hash = hashlib.sha1()
13
- text_bytes = text.encode('utf-8')
14
- _hash.update(text_bytes)
15
- return _hash.hexdigest()
16
-
17
-
18
- def sha256(text: str) -> str:
19
- _hash = hashlib.sha256()
20
- text_bytes = text.encode('utf-8')
21
- _hash.update(text_bytes)
22
- return _hash.hexdigest()
23
-
24
-
25
- def sha512(text: str) -> str:
26
- _hash = hashlib.sha512()
27
- text_bytes = text.encode('utf-8')
28
- _hash.update(text_bytes)
29
- return _hash.hexdigest()
@@ -1,32 +0,0 @@
1
- import os
2
-
3
-
4
- def read_file(path: str, encoding: str = 'utf-8') -> str:
5
- try:
6
- with open(path, mode='r', encoding=encoding) as f:
7
- return f.read()
8
- except UnicodeDecodeError:
9
- try:
10
- with open(path, mode='r', encoding='gbk') as f:
11
- return f.read()
12
- except UnicodeDecodeError:
13
- pass
14
-
15
-
16
- def write_file(content: str | bytes, path: str, encoding: str = 'utf-8') -> str:
17
- os.makedirs(os.path.dirname(path), exist_ok=True)
18
- if isinstance(content, bytes):
19
- with open(path, mode='wb') as f:
20
- f.write(content)
21
- return path
22
- with open(path, mode='w', encoding=encoding) as f:
23
- f.write(content)
24
- return path
25
-
26
-
27
- def get_files(path: str) -> list:
28
- if os.path.exists(path):
29
- entries = os.listdir(path)
30
- return [os.path.join(path, entry) for entry in entries if os.path.isfile(os.path.join(path, entry))]
31
- else:
32
- return []
File without changes
File without changes
File without changes
File without changes