mawo-slovnet 1.0.0__tar.gz → 1.0.1__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.

Potentially problematic release.


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

@@ -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
@@ -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
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mawo-slovnet"
7
- version = "1.0.0"
7
+ version = "1.0.1"
8
8
  description = "Нейросетевые модели для русского языка: NER, морфология и синтаксис с автоматической загрузкой"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
- license = "MIT"
11
+ license = {text = "MIT"}
12
12
  authors = [
13
13
  {name = "MAWO Team", email = "team@mawo.ru"},
14
14
  ]
@@ -28,6 +28,7 @@ classifiers = [
28
28
  "Development Status :: 5 - Production/Stable",
29
29
  "Intended Audience :: Developers",
30
30
  "Intended Audience :: Science/Research",
31
+ "License :: OSI Approved :: MIT License",
31
32
  "Natural Language :: Russian",
32
33
  "Operating System :: OS Independent",
33
34
  "Programming Language :: Python :: 3",
@@ -77,10 +78,8 @@ target-version = ["py310", "py311", "py312"]
77
78
  [tool.ruff]
78
79
  line-length = 100
79
80
  target-version = "py310"
80
-
81
- [tool.ruff.lint]
82
81
  select = ["E", "F", "I", "N", "W", "B", "UP"]
83
- ignore = ["E501", "N802"] # N802: ignore function name case (NewsNERTagger, etc.)
82
+ ignore = ["E501"]
84
83
 
85
84
  [tool.mypy]
86
85
  python_version = "3.10"
@@ -3,9 +3,8 @@
3
3
  Тестируют библиотеку как самодостаточный проект
4
4
  """
5
5
 
6
- from pathlib import Path
7
-
8
6
  import pytest
7
+ from pathlib import Path
9
8
 
10
9
 
11
10
  class TestImports:
@@ -15,8 +14,6 @@ class TestImports:
15
14
  """Тест: главный модуль импортируется"""
16
15
  try:
17
16
  import mawo_slovnet
18
-
19
- assert mawo_slovnet is not None
20
17
  except ImportError as e:
21
18
  pytest.fail(f"Failed to import mawo_slovnet: {e}")
22
19
 
@@ -24,8 +21,6 @@ class TestImports:
24
21
  """Тест: класс NER импортируется"""
25
22
  try:
26
23
  from mawo_slovnet import NER
27
-
28
- assert NER is not None
29
24
  except ImportError as e:
30
25
  pytest.fail(f"Failed to import NER: {e}")
31
26
 
@@ -33,8 +28,6 @@ class TestImports:
33
28
  """Тест: класс Morph импортируется"""
34
29
  try:
35
30
  from mawo_slovnet import Morph
36
-
37
- assert Morph is not None
38
31
  except ImportError as e:
39
32
  pytest.fail(f"Failed to import Morph: {e}")
40
33
 
@@ -42,8 +35,6 @@ class TestImports:
42
35
  """Тест: класс Syntax импортируется"""
43
36
  try:
44
37
  from mawo_slovnet import Syntax
45
-
46
- assert Syntax is not None
47
38
  except ImportError as e:
48
39
  pytest.fail(f"Failed to import Syntax: {e}")
49
40
 
@@ -238,6 +229,7 @@ class TestDataFiles:
238
229
 
239
230
  def test_ner_model_file_exists(self):
240
231
  """Тест: файл модели NER существует"""
232
+ from pathlib import Path
241
233
  import mawo_slovnet
242
234
 
243
235
  # Находим директорию модуля
@@ -250,6 +242,7 @@ class TestDataFiles:
250
242
 
251
243
  def test_morph_model_file_exists(self):
252
244
  """Тест: файл модели Morph существует"""
245
+ from pathlib import Path
253
246
  import mawo_slovnet
254
247
 
255
248
  module_path = Path(mawo_slovnet.__file__).parent
@@ -260,6 +253,7 @@ class TestDataFiles:
260
253
 
261
254
  def test_syntax_model_file_exists(self):
262
255
  """Тест: файл модели Syntax существует"""
256
+ from pathlib import Path
263
257
  import mawo_slovnet
264
258
 
265
259
  module_path = Path(mawo_slovnet.__file__).parent
File without changes
File without changes
File without changes