mawo-slovnet 1.0.0__py3-none-any.whl → 1.0.1__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.

Potentially problematic release.


This version of mawo-slovnet might be problematic. Click here for more details.

mawo_slovnet/__init__.py CHANGED
@@ -12,7 +12,8 @@ from __future__ import annotations
12
12
  import logging
13
13
  import os
14
14
  import sys
15
- from typing import Any
15
+ from pathlib import Path
16
+ from typing import Any, Optional
16
17
 
17
18
  logger = logging.getLogger(__name__)
18
19
 
@@ -184,6 +185,7 @@ class EnhancedSlovNetLoader:
184
185
  sys.path.insert(0, str(model_dir))
185
186
 
186
187
  # Import slovnet components
188
+ import slovnet
187
189
  from slovnet import NewsEmbedding as _NewsEmbedding
188
190
  from slovnet import NewsMorphTagger as _NewsMorphTagger
189
191
  from slovnet import NewsNERTagger as _NewsNERTagger
@@ -7,11 +7,13 @@ Based on:
7
7
  """
8
8
  from __future__ import annotations
9
9
 
10
+ import hashlib
10
11
  import logging
12
+ import os
11
13
  import shutil
12
14
  import tarfile
13
15
  from pathlib import Path
14
- from typing import Any
16
+ from typing import Any, Optional
15
17
  from urllib.request import urlopen
16
18
 
17
19
  logger = logging.getLogger(__name__)
@@ -129,7 +131,7 @@ class SlovNetModelDownloader:
129
131
  )
130
132
 
131
133
  # Extract tar archive
132
- logger.info("📦 Extracting model archive...")
134
+ logger.info(f"📦 Extracting model archive...")
133
135
  with tarfile.open(tar_path, "r") as tar:
134
136
  tar.extractall(temp_dir)
135
137
 
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mawo-slovnet
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Нейросетевые модели для русского языка: NER, морфология и синтаксис с автоматической загрузкой
5
5
  Author-email: MAWO Team <team@mawo.ru>
6
6
  Maintainer-email: MAWO Team <team@mawo.ru>
7
- License-Expression: MIT
7
+ License: MIT
8
8
  Project-URL: Homepage, https://github.com/mawo-ru/mawo-slovnet
9
9
  Project-URL: Documentation, https://github.com/mawo-ru/mawo-slovnet#readme
10
10
  Project-URL: Repository, https://github.com/mawo-ru/mawo-slovnet
@@ -14,6 +14,7 @@ Keywords: nlp,russian,ner,morphology,syntax,slovnet,mawo
14
14
  Classifier: Development Status :: 5 - Production/Stable
15
15
  Classifier: Intended Audience :: Developers
16
16
  Classifier: Intended Audience :: Science/Research
17
+ Classifier: License :: OSI Approved :: MIT License
17
18
  Classifier: Natural Language :: Russian
18
19
  Classifier: Operating System :: OS Independent
19
20
  Classifier: Programming Language :: Python :: 3
@@ -0,0 +1,10 @@
1
+ mawo_slovnet/__init__.py,sha256=PSDCHRG1hXDmgHhCGZlnnT3nAVDymOFhvkKXXmSg5l0,12920
2
+ mawo_slovnet/model_downloader.py,sha256=-UeEg7CV1F30Lhxjr-NO-b7kCbmaZefeQaIPsFLhGOI,12143
3
+ mawo_slovnet/slovnet_morph_news_v1.tar.neural.gz,sha256=J2yKPmU0oULiizuATPJp9KjLhcDBNCwFnRfh6Eu57Rg,2442002
4
+ mawo_slovnet/slovnet_ner_news_v1.tar.neural.gz,sha256=tIgP1tVTYJdIXJhde4oRvVk-qD4oZVSrs9Wh3xsrHwo,2249877
5
+ mawo_slovnet/slovnet_syntax_news_v1.tar.neural.gz,sha256=_SFLVCTcpw1KZjSrt6WrJ8Fom7DUljjBlkfbGMA3XZk,2459132
6
+ mawo_slovnet-1.0.1.dist-info/licenses/LICENSE,sha256=HxcBccBgl94zsrO98Iv1FqnG5cp8fSsnxfq3YDSi7Mg,1066
7
+ mawo_slovnet-1.0.1.dist-info/METADATA,sha256=aD_F6Tyu_rGgLklHebTzqYFSSXDfasDUe003CW2-JDU,11686
8
+ mawo_slovnet-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ mawo_slovnet-1.0.1.dist-info/top_level.txt,sha256=i0LmrJ3do13Qjwsve1dfFRZN2Fg2Ymf7jN5x9Im2eFE,13
10
+ mawo_slovnet-1.0.1.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- mawo_slovnet/__init__.py,sha256=5NuqOhQlTxs8tJKAxOESMi6CbHjKIPgDBSHs3fjw1dI,12858
2
- mawo_slovnet/model_downloader.py,sha256=l6hI149WQ-QHPsJQ7KRdL3f1BK9xz3tao0KrV_84RA4,12107
3
- mawo_slovnet/slovnet_morph_news_v1.tar.neural.gz,sha256=J2yKPmU0oULiizuATPJp9KjLhcDBNCwFnRfh6Eu57Rg,2442002
4
- mawo_slovnet/slovnet_ner_news_v1.tar.neural.gz,sha256=tIgP1tVTYJdIXJhde4oRvVk-qD4oZVSrs9Wh3xsrHwo,2249877
5
- mawo_slovnet/slovnet_syntax_news_v1.tar.neural.gz,sha256=_SFLVCTcpw1KZjSrt6WrJ8Fom7DUljjBlkfbGMA3XZk,2459132
6
- mawo_slovnet-1.0.0.dist-info/licenses/LICENSE,sha256=HxcBccBgl94zsrO98Iv1FqnG5cp8fSsnxfq3YDSi7Mg,1066
7
- mawo_slovnet-1.0.0.dist-info/METADATA,sha256=7tYZruUhcN-R1zTfzZQCEoEDgwCrlh7I2hqfHsFwsEc,11646
8
- mawo_slovnet-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- mawo_slovnet-1.0.0.dist-info/top_level.txt,sha256=i0LmrJ3do13Qjwsve1dfFRZN2Fg2Ymf7jN5x9Im2eFE,13
10
- mawo_slovnet-1.0.0.dist-info/RECORD,,