deeplotx 0.4.3__py3-none-any.whl → 0.4.6__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.
@@ -1,11 +1,13 @@
1
+ import os
1
2
  import math
3
+
2
4
  import torch
3
5
  from torch import nn
4
6
  from transformers import BertTokenizer, BertModel
5
7
 
6
8
  from deeplotx import __ROOT__
7
9
 
8
- CACHE_PATH = f'{__ROOT__}\\.cache'
10
+ CACHE_PATH = os.path.join(__ROOT__, '.cache')
9
11
  DEFAULT_BERT = 'bert-base-uncased'
10
12
 
11
13
 
@@ -1,10 +1,12 @@
1
+ import os
2
+
1
3
  import torch
2
4
  from torch import nn
3
5
  from transformers import LongformerTokenizer, LongformerModel
4
6
 
5
7
  from deeplotx import __ROOT__
6
8
 
7
- CACHE_PATH = f'{__ROOT__}\\.cache'
9
+ CACHE_PATH = os.path.join(__ROOT__, '.cache')
8
10
  DEFAULT_LONGFORMER = 'allenai/longformer-base-4096'
9
11
 
10
12
 
@@ -1,16 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deeplotx
3
- Version: 0.4.3
3
+ Version: 0.4.6
4
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
8
8
  Requires-Dist: hf-xet>=1.0.5
9
- Requires-Dist: jupyter>=1.1.1
10
- Requires-Dist: numpy>=2.2.5
9
+ Requires-Dist: jupyter
10
+ Requires-Dist: numpy
11
11
  Requires-Dist: python-dotenv>=1.1.0
12
- Requires-Dist: torch>=2.7.0
13
- Requires-Dist: transformers>=4.51.3
12
+ Requires-Dist: torch
13
+ Requires-Dist: transformers
14
14
  Requires-Dist: typing-extensions>=4.13.2
15
15
  Dynamic: license-file
16
16
 
@@ -1,8 +1,8 @@
1
1
  deeplotx/__init__.py,sha256=wMN_AI14V-0BPbQghYpvd2y7eUGfhr7jKTTuur-5Upg,1002
2
2
  deeplotx/encoder/__init__.py,sha256=EM-xrTsHoGaiiFpj-iFAxilMHXC_sQKWYrcq1qCnI3U,138
3
- deeplotx/encoder/bert_encoder.py,sha256=A-B7Gj94xv6UhvsFTBH7tnkAdGHRhfUZA2QjSnTKB6c,1970
3
+ deeplotx/encoder/bert_encoder.py,sha256=6QY2pOvayWNz4w749JAGndvQ-jeKJgy3BalQl2JCkgk,1994
4
4
  deeplotx/encoder/long_text_encoder.py,sha256=V6VxaHW6bMMaZHgU1UZ8n19UfSIV2f2sarWXquiFffQ,3018
5
- deeplotx/encoder/longformer_encoder.py,sha256=mZpC5TrGHQo98-ydGtVQQ9KRHgCGl1sRoxcQs7r4SSo,1409
5
+ deeplotx/encoder/longformer_encoder.py,sha256=4avKYsLN6TTpPoky8BQ0nIhQm8lVxMvvzqkrdKCWj3Q,1433
6
6
  deeplotx/nn/__init__.py,sha256=oQ-vYXyuaGelfCOs2im_gZXAiiBlCCVXh1uw9yjvRMs,253
7
7
  deeplotx/nn/auto_regression.py,sha256=o82C9TREZbhGdj2knSVGTXhjJne0LGEqc7BllByJJWE,449
8
8
  deeplotx/nn/base_neural_network.py,sha256=xWKG4FX6Jzdlrfc1HOW1aO9uh0Af3D-dB5Jl7eCxsAk,1635
@@ -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.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,,
23
+ deeplotx-0.4.6.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
24
+ deeplotx-0.4.6.dist-info/METADATA,sha256=3SBHwAo506Q9kkzfv2ZEd2AUKRD7q--3DLc7hRR8wms,1656
25
+ deeplotx-0.4.6.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
26
+ deeplotx-0.4.6.dist-info/top_level.txt,sha256=hKg4pVDXZ-WWxkRfJFczRIll1Sv7VyfKCmzHLXbuh1U,9
27
+ deeplotx-0.4.6.dist-info/RECORD,,