deeplotx 0.4.1__py3-none-any.whl → 0.4.3__py3-none-any.whl
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/__init__.py +7 -1
- deeplotx/similarity/__init__.py +5 -0
- {deeplotx-0.4.1.dist-info → deeplotx-0.4.3.dist-info}/METADATA +8 -4
- {deeplotx-0.4.1.dist-info → deeplotx-0.4.3.dist-info}/RECORD +7 -7
- {deeplotx-0.4.1.dist-info → deeplotx-0.4.3.dist-info}/WHEEL +0 -0
- {deeplotx-0.4.1.dist-info → deeplotx-0.4.3.dist-info}/licenses/LICENSE +0 -0
- {deeplotx-0.4.1.dist-info → deeplotx-0.4.3.dist-info}/top_level.txt +0 -0
deeplotx/__init__.py
CHANGED
@@ -4,7 +4,13 @@ import os
|
|
4
4
|
__ROOT__ = os.path.dirname(os.path.abspath(__file__))
|
5
5
|
|
6
6
|
from .encoder import BertEncoder, LongTextEncoder, LongformerEncoder
|
7
|
-
from .nn import
|
7
|
+
from .nn import (
|
8
|
+
LinearRegression,
|
9
|
+
LogisticRegression,
|
10
|
+
SoftmaxRegression,
|
11
|
+
RecursiveSequential,
|
12
|
+
AutoRegression
|
13
|
+
)
|
8
14
|
from .trainer import TextBinaryClassifierTrainer
|
9
15
|
|
10
16
|
__AUTHOR__ = '吴子豪 / Vortez Wohl'
|
deeplotx/similarity/__init__.py
CHANGED
@@ -15,3 +15,8 @@ def ndarray_adapter(*args) -> tuple | np.ndarray:
|
|
15
15
|
if len(args) > 1:
|
16
16
|
return tuple(args)
|
17
17
|
return args[0]
|
18
|
+
|
19
|
+
|
20
|
+
from .set import jaccard_similarity, ochiai_similarity, dice_coefficient, overlap_coefficient
|
21
|
+
from .vector import euclidean_similarity, cosine_similarity, chebyshev_similarity, l2_normalize, z_score_normalize
|
22
|
+
from .distribution import cross_entropy, kl_divergence, js_divergence, hellinger_distance
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: deeplotx
|
3
|
-
Version: 0.4.
|
4
|
-
Summary: Easy-2-use long text
|
3
|
+
Version: 0.4.3
|
4
|
+
Summary: Easy-2-use long text NLP toolkit.
|
5
5
|
Requires-Python: >=3.10
|
6
6
|
Description-Content-Type: text/markdown
|
7
7
|
License-File: LICENSE
|
@@ -14,7 +14,11 @@ Requires-Dist: transformers>=4.51.3
|
|
14
14
|
Requires-Dist: typing-extensions>=4.13.2
|
15
15
|
Dynamic: license-file
|
16
16
|
|
17
|
-
|
17
|
+
[](https://deepwiki.com/vortezwohl/LoTC)
|
18
|
+
|
19
|
+
# DeepLoTX
|
20
|
+
|
21
|
+
An Easy-2-use long text NLP toolkit
|
18
22
|
|
19
23
|
## Installation
|
20
24
|
|
@@ -38,7 +42,7 @@ Dynamic: license-file
|
|
38
42
|
|
39
43
|
## Quick Start
|
40
44
|
|
41
|
-
To train a binary classifier
|
45
|
+
To train a binary classifier from text files:
|
42
46
|
|
43
47
|
```python
|
44
48
|
from deeplotx.util import get_files, read_file
|
@@ -1,4 +1,4 @@
|
|
1
|
-
deeplotx/__init__.py,sha256=
|
1
|
+
deeplotx/__init__.py,sha256=wMN_AI14V-0BPbQghYpvd2y7eUGfhr7jKTTuur-5Upg,1002
|
2
2
|
deeplotx/encoder/__init__.py,sha256=EM-xrTsHoGaiiFpj-iFAxilMHXC_sQKWYrcq1qCnI3U,138
|
3
3
|
deeplotx/encoder/bert_encoder.py,sha256=A-B7Gj94xv6UhvsFTBH7tnkAdGHRhfUZA2QjSnTKB6c,1970
|
4
4
|
deeplotx/encoder/long_text_encoder.py,sha256=V6VxaHW6bMMaZHgU1UZ8n19UfSIV2f2sarWXquiFffQ,3018
|
@@ -10,7 +10,7 @@ deeplotx/nn/linear_regression.py,sha256=D4mEWVOq6q1Fm2otm57rgZ_E06HJLZBV5k636Ppr
|
|
10
10
|
deeplotx/nn/logistic_regression.py,sha256=QAtZp2oyqOW8-1pJWVcahsSM83bzfA68EHObg-wSHHY,463
|
11
11
|
deeplotx/nn/recursive_sequential.py,sha256=Nj5B4iPAq7SUCKepextZbHWvGPxHo3w9UXEsEg_nFi4,1352
|
12
12
|
deeplotx/nn/softmax_regression.py,sha256=eUn3mVNlye9ewVdw3McPHZuKbUvvaamsUgFIJMVMgBU,487
|
13
|
-
deeplotx/similarity/__init__.py,sha256=
|
13
|
+
deeplotx/similarity/__init__.py,sha256=s3u-KSgxjnMcWpIItKgXNltFMPQ7YY3CqsqHI-5F1c8,724
|
14
14
|
deeplotx/similarity/distribution.py,sha256=wQGouuuW531pZeBRKBujXsdsoz4fDnPw7_GW81jwepc,1066
|
15
15
|
deeplotx/similarity/set.py,sha256=zhGFxtSIXlWqvipBYzoiPahp4g0boAIoUiMfG0wl07A,686
|
16
16
|
deeplotx/similarity/vector.py,sha256=WVbDHqykt-fvuILVrhUCtIFAOEjY_zvttrXGM9eylG0,1125
|
@@ -20,8 +20,8 @@ deeplotx/trainer/text_binary_classification_trainer.py,sha256=5O-5dwVMCj5EDX9gjJ
|
|
20
20
|
deeplotx/util/__init__.py,sha256=JxqAK_WOOHcYVSTHBT1-WuBwWrPEVDTV3titeVWvNUM,74
|
21
21
|
deeplotx/util/hash.py,sha256=wwsC6kOQvbpuvwKsNQOARd78_wePmW9i3oaUuXRUnpc,352
|
22
22
|
deeplotx/util/read_file.py,sha256=ptzouvEQeeW8KU5BrWNJlXw-vFXVrpS9SkAUxsu6A8A,612
|
23
|
-
deeplotx-0.4.
|
24
|
-
deeplotx-0.4.
|
25
|
-
deeplotx-0.4.
|
26
|
-
deeplotx-0.4.
|
27
|
-
deeplotx-0.4.
|
23
|
+
deeplotx-0.4.3.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
24
|
+
deeplotx-0.4.3.dist-info/METADATA,sha256=jbPH3DzE3Yf2cnkStd34IrPy0Nb6ag9xeiokT0P8dFY,1685
|
25
|
+
deeplotx-0.4.3.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
26
|
+
deeplotx-0.4.3.dist-info/top_level.txt,sha256=hKg4pVDXZ-WWxkRfJFczRIll1Sv7VyfKCmzHLXbuh1U,9
|
27
|
+
deeplotx-0.4.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|