deeplotx 0.9.6__tar.gz → 0.9.7__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.
- {deeplotx-0.9.6 → deeplotx-0.9.7}/PKG-INFO +1 -1
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/ner/bert_ner.py +2 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/util/read_file.py +11 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx.egg-info/PKG-INFO +1 -1
- {deeplotx-0.9.6 → deeplotx-0.9.7}/pyproject.toml +1 -1
- {deeplotx-0.9.6 → deeplotx-0.9.7}/LICENSE +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/README.md +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/__init__.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/encoder/__init__.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/encoder/encoder.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/encoder/long_text_encoder.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/encoder/longformer_encoder.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/ner/__init__.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/ner/base_ner.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/ner/n2g/__init__.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/ner/named_entity.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/__init__.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/attention.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/auto_regression.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/base_neural_network.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/feed_forward.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/linear_regression.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/logistic_regression.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/long_context_auto_regression.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/long_context_recursive_sequential.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/multi_head_attention.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/multi_head_feed_forward.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/recursive_sequential.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/roformer_encoder.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/rope.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/nn/softmax_regression.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/similarity/__init__.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/similarity/distribution.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/similarity/set.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/similarity/vector.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/trainer/__init__.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/trainer/base_trainer.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/trainer/text_binary_classification_trainer.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/util/__init__.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx/util/hash.py +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx.egg-info/SOURCES.txt +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx.egg-info/dependency_links.txt +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx.egg-info/requires.txt +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/deeplotx.egg-info/top_level.txt +0 -0
- {deeplotx-0.9.6 → deeplotx-0.9.7}/setup.cfg +0 -0
@@ -13,6 +13,17 @@ def read_file(path: str, encoding: str = 'utf-8') -> str:
|
|
13
13
|
pass
|
14
14
|
|
15
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
|
+
|
16
27
|
def get_files(path: str) -> list:
|
17
28
|
if os.path.exists(path):
|
18
29
|
entries = os.listdir(path)
|
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
|
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
|
File without changes
|
File without changes
|