basedpyright 1.16.0 → 1.17.0

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.
Files changed (164) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.map +1 -1
  3. package/dist/pyright.js +1 -1
  4. package/dist/pyright.js.map +1 -1
  5. package/dist/typeshed-fallback/commit.txt +1 -1
  6. package/dist/typeshed-fallback/stdlib/_ast.pyi +5 -3
  7. package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +6 -3
  8. package/dist/typeshed-fallback/stdlib/_ctypes.pyi +2 -2
  9. package/dist/typeshed-fallback/stdlib/_operator.pyi +5 -1
  10. package/dist/typeshed-fallback/stdlib/_stat.pyi +6 -6
  11. package/dist/typeshed-fallback/stdlib/_tkinter.pyi +2 -2
  12. package/dist/typeshed-fallback/stdlib/argparse.pyi +11 -1
  13. package/dist/typeshed-fallback/stdlib/array.pyi +3 -3
  14. package/dist/typeshed-fallback/stdlib/ast.pyi +18 -17
  15. package/dist/typeshed-fallback/stdlib/builtins.pyi +7 -5
  16. package/dist/typeshed-fallback/stdlib/cmd.pyi +2 -1
  17. package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +2 -1
  18. package/dist/typeshed-fallback/stdlib/contextlib.pyi +2 -0
  19. package/dist/typeshed-fallback/stdlib/crypt.pyi +6 -5
  20. package/dist/typeshed-fallback/stdlib/dataclasses.pyi +5 -1
  21. package/dist/typeshed-fallback/stdlib/datetime.pyi +2 -2
  22. package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +120 -0
  23. package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -0
  24. package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +2 -2
  25. package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +2 -2
  26. package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +9 -4
  27. package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +2 -2
  28. package/dist/typeshed-fallback/stdlib/distutils/core.pyi +2 -2
  29. package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +5 -5
  30. package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -1
  31. package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +149 -4
  32. package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +6 -6
  33. package/dist/typeshed-fallback/stdlib/distutils/log.pyi +6 -6
  34. package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +7 -7
  35. package/dist/typeshed-fallback/stdlib/email/message.pyi +2 -1
  36. package/dist/typeshed-fallback/stdlib/email/utils.pyi +4 -1
  37. package/dist/typeshed-fallback/stdlib/filecmp.pyi +18 -7
  38. package/dist/typeshed-fallback/stdlib/ftplib.pyi +1 -1
  39. package/dist/typeshed-fallback/stdlib/json/encoder.pyi +6 -6
  40. package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +31 -36
  41. package/dist/typeshed-fallback/stdlib/marshal.pyi +2 -2
  42. package/dist/typeshed-fallback/stdlib/math.pyi +3 -3
  43. package/dist/typeshed-fallback/stdlib/operator.pyi +3 -0
  44. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +4 -2
  45. package/dist/typeshed-fallback/stdlib/pathlib.pyi +24 -2
  46. package/dist/typeshed-fallback/stdlib/poplib.pyi +2 -1
  47. package/dist/typeshed-fallback/stdlib/pty.pyi +8 -3
  48. package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +3 -3
  49. package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +45 -43
  50. package/dist/typeshed-fallback/stdlib/pyexpat/model.pyi +12 -10
  51. package/dist/typeshed-fallback/stdlib/select.pyi +1 -1
  52. package/dist/typeshed-fallback/stdlib/signal.pyi +1 -1
  53. package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +8 -2
  54. package/dist/typeshed-fallback/stdlib/tarfile.pyi +1 -1
  55. package/dist/typeshed-fallback/stdlib/time.pyi +5 -5
  56. package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +28 -4
  57. package/dist/typeshed-fallback/stdlib/tkinter/constants.pyi +6 -6
  58. package/dist/typeshed-fallback/stdlib/tkinter/dialog.pyi +2 -2
  59. package/dist/typeshed-fallback/stdlib/tkinter/messagebox.pyi +17 -17
  60. package/dist/typeshed-fallback/stdlib/tkinter/ttk.pyi +3 -1
  61. package/dist/typeshed-fallback/stdlib/typing.pyi +2 -1
  62. package/dist/typeshed-fallback/stdlib/urllib/request.pyi +1 -0
  63. package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +78 -3
  64. package/dist/typeshed-fallback/stdlib/zipfile/_path.pyi +1 -0
  65. package/dist/typeshed-fallback/stubs/JACK-Client/METADATA.toml +3 -1
  66. package/dist/typeshed-fallback/stubs/cachetools/METADATA.toml +1 -1
  67. package/dist/typeshed-fallback/stubs/cachetools/cachetools/__init__.pyi +2 -2
  68. package/dist/typeshed-fallback/stubs/corus/METADATA.toml +2 -0
  69. package/dist/typeshed-fallback/stubs/corus/corus/__init__.pyi +1 -0
  70. package/dist/typeshed-fallback/stubs/corus/corus/io.pyi +21 -0
  71. package/dist/typeshed-fallback/stubs/corus/corus/readme.pyi +17 -0
  72. package/dist/typeshed-fallback/stubs/corus/corus/record.pyi +8 -0
  73. package/dist/typeshed-fallback/stubs/corus/corus/sources/__init__.pyi +23 -0
  74. package/dist/typeshed-fallback/stubs/corus/corus/sources/bsnlp.pyi +75 -0
  75. package/dist/typeshed-fallback/stubs/corus/corus/sources/buriy.pyi +18 -0
  76. package/dist/typeshed-fallback/stubs/corus/corus/sources/corpora.pyi +50 -0
  77. package/dist/typeshed-fallback/stubs/corus/corus/sources/factru.pyi +74 -0
  78. package/dist/typeshed-fallback/stubs/corus/corus/sources/gareev.pyi +21 -0
  79. package/dist/typeshed-fallback/stubs/corus/corus/sources/gramru.pyi +1 -0
  80. package/dist/typeshed-fallback/stubs/corus/corus/sources/lenta.pyi +19 -0
  81. package/dist/typeshed-fallback/stubs/corus/corus/sources/librusec.pyi +14 -0
  82. package/dist/typeshed-fallback/stubs/corus/corus/sources/meta.pyi +54 -0
  83. package/dist/typeshed-fallback/stubs/corus/corus/sources/mokoron.pyi +28 -0
  84. package/dist/typeshed-fallback/stubs/corus/corus/sources/morphoru.pyi +24 -0
  85. package/dist/typeshed-fallback/stubs/corus/corus/sources/ne5.pyi +28 -0
  86. package/dist/typeshed-fallback/stubs/corus/corus/sources/ods.pyi +46 -0
  87. package/dist/typeshed-fallback/stubs/corus/corus/sources/omnia.pyi +49 -0
  88. package/dist/typeshed-fallback/stubs/corus/corus/sources/persons.pyi +27 -0
  89. package/dist/typeshed-fallback/stubs/corus/corus/sources/ria.pyi +21 -0
  90. package/dist/typeshed-fallback/stubs/corus/corus/sources/rudrec.pyi +27 -0
  91. package/dist/typeshed-fallback/stubs/corus/corus/sources/russe.pyi +16 -0
  92. package/dist/typeshed-fallback/stubs/corus/corus/sources/simlex.pyi +14 -0
  93. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/__init__.pyi +10 -0
  94. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/arzamas.pyi +6 -0
  95. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/common.pyi +77 -0
  96. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/fontanka.pyi +6 -0
  97. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/interfax.pyi +6 -0
  98. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/kp.pyi +6 -0
  99. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/lenta.pyi +6 -0
  100. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/magazines.pyi +6 -0
  101. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/nplus1.pyi +6 -0
  102. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/proza.pyi +8 -0
  103. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/social.pyi +15 -0
  104. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/subtitles.pyi +6 -0
  105. package/dist/typeshed-fallback/stubs/corus/corus/sources/toloka.pyi +28 -0
  106. package/dist/typeshed-fallback/stubs/corus/corus/sources/ud.pyi +29 -0
  107. package/dist/typeshed-fallback/stubs/corus/corus/sources/wiki.pyi +20 -0
  108. package/dist/typeshed-fallback/stubs/corus/corus/sources/wikiner.pyi +19 -0
  109. package/dist/typeshed-fallback/stubs/corus/corus/third/WikiExtractor.pyi +227 -0
  110. package/dist/typeshed-fallback/stubs/corus/corus/third/__init__.pyi +0 -0
  111. package/dist/typeshed-fallback/stubs/corus/corus/zip.pyi +28 -0
  112. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/drawing.pyi +2 -2
  113. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +1 -1
  114. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/client.pyi +2 -2
  115. package/dist/typeshed-fallback/stubs/influxdb-client/METADATA.toml +1 -1
  116. package/dist/typeshed-fallback/stubs/jsonschema/jsonschema/validators.pyi +1 -1
  117. package/dist/typeshed-fallback/stubs/networkx/METADATA.toml +3 -2
  118. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/digraph.pyi +14 -14
  119. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +15 -9
  120. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +17 -4
  121. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +4 -0
  122. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/__init__.pyi +2 -0
  123. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/chart/series.pyi +3 -1
  124. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_reader.pyi +4 -5
  125. package/dist/typeshed-fallback/stubs/passlib/passlib/utils/handlers.pyi +6 -2
  126. package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +1 -1
  127. package/dist/typeshed-fallback/stubs/polib/polib.pyi +4 -2
  128. package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +1 -1
  129. package/dist/typeshed-fallback/stubs/pyflakes/pyflakes/checker.pyi +2 -2
  130. package/dist/typeshed-fallback/stubs/pygit2/pygit2/utils.pyi +2 -2
  131. package/dist/typeshed-fallback/stubs/pyinstaller/METADATA.toml +1 -5
  132. package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +0 -1
  133. package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/compat.pyi +2 -0
  134. package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +2 -2
  135. package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +24 -8
  136. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/doctemplate.pyi +7 -1
  137. package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +3 -1
  138. package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/plot.pyi +1 -1
  139. package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +136 -4
  140. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +2 -0
  141. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +6 -4
  142. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/sysconfig.pyi +3 -3
  143. package/dist/typeshed-fallback/stubs/setuptools/setuptools/dist.pyi +185 -0
  144. package/dist/typeshed-fallback/stubs/setuptools/setuptools/wheel.pyi +1 -1
  145. package/dist/typeshed-fallback/stubs/shapely/METADATA.toml +3 -1
  146. package/package.json +1 -1
  147. package/dist/typeshed-fallback/stubs/flake8-2020/METADATA.toml +0 -2
  148. package/dist/typeshed-fallback/stubs/flake8-2020/flake8_2020.pyi +0 -26
  149. package/dist/typeshed-fallback/stubs/paho-mqtt/METADATA.toml +0 -3
  150. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/__init__.pyi +0 -1
  151. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/client.pyi +0 -331
  152. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/matcher.pyi +0 -11
  153. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/packettypes.pyi +0 -19
  154. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/properties.pyi +0 -38
  155. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/publish.pyi +0 -63
  156. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/reasoncodes.pyi +0 -13
  157. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/subscribe.pyi +0 -39
  158. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/subscribeoptions.pyi +0 -24
  159. package/dist/typeshed-fallback/stubs/python-slugify/METADATA.toml +0 -3
  160. package/dist/typeshed-fallback/stubs/python-slugify/slugify/__init__.pyi +0 -12
  161. package/dist/typeshed-fallback/stubs/python-slugify/slugify/__version__.pyi +0 -8
  162. package/dist/typeshed-fallback/stubs/python-slugify/slugify/slugify.pyi +0 -20
  163. package/dist/typeshed-fallback/stubs/python-slugify/slugify/special.pyi +0 -8
  164. /package/dist/typeshed-fallback/stubs/{paho-mqtt/paho/__init__.pyi → corus/corus/path.pyi} +0 -0
@@ -0,0 +1,75 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ RU: str
7
+ BG: str
8
+ CS: str
9
+ PL: str
10
+ LANGS: Incomplete
11
+ ANNOTATED: str
12
+ RAW: str
13
+ TXT: str
14
+ OUT: str
15
+
16
+ class BsnlpId(Record):
17
+ __attributes__: Incomplete
18
+ lang: Incomplete
19
+ type: Incomplete
20
+ name: Incomplete
21
+ path: Incomplete
22
+ def __init__(self, lang, type, name, path) -> None: ...
23
+
24
+ class BsnlpRaw(Record):
25
+ __attributes__: Incomplete
26
+ id: Incomplete
27
+ name: Incomplete
28
+ lang: Incomplete
29
+ date: Incomplete
30
+ url: Incomplete
31
+ text: Incomplete
32
+ def __init__(self, id, name, lang, date, url, text) -> None: ...
33
+
34
+ class BsnlpAnnotated(Record):
35
+ __attributes__: Incomplete
36
+ id: Incomplete
37
+ name: Incomplete
38
+ substrings: Incomplete
39
+ def __init__(self, id, name, substrings) -> None: ...
40
+
41
+ class BsnlpSubstring(Record):
42
+ __attributes__: Incomplete
43
+ text: Incomplete
44
+ normal: Incomplete
45
+ type: Incomplete
46
+ id: Incomplete
47
+ def __init__(self, text, normal, type, id) -> None: ...
48
+
49
+ class BsnlpMarkup(Record):
50
+ __attributes__: Incomplete
51
+ id: Incomplete
52
+ name: Incomplete
53
+ lang: Incomplete
54
+ date: Incomplete
55
+ url: Incomplete
56
+ text: Incomplete
57
+ substrings: Incomplete
58
+ def __init__(self, id, name, lang, date, url, text, substrings) -> None: ...
59
+
60
+ def walk(dir): ...
61
+ def load_ids(dir, langs) -> Generator[Incomplete]: ...
62
+ def select_type(ids, type) -> Generator[Incomplete]: ...
63
+
64
+ RAW_PATTERN: Incomplete
65
+
66
+ def parse_raw(name, text): ...
67
+ def load_raw(records) -> Generator[Incomplete]: ...
68
+
69
+ ANNOTATED_PATTERN: Incomplete
70
+
71
+ def parse_substrings(lines) -> Generator[Incomplete]: ...
72
+ def parse_annotated(name, lines): ...
73
+ def load_annotated(records) -> Generator[Incomplete]: ...
74
+ def merge(raw, annotated) -> Generator[Incomplete]: ...
75
+ def load_bsnlp(dir, langs=["ru"]): ...
@@ -0,0 +1,18 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from corus.record import Record
4
+
5
+ __all__ = ["load_buriy_news", "load_buriy_webhose"]
6
+
7
+ class BuriyRecord(Record):
8
+ __attributes__: Incomplete
9
+ timestamp: Incomplete
10
+ url: Incomplete
11
+ edition: Incomplete
12
+ topics: Incomplete
13
+ title: Incomplete
14
+ text: Incomplete
15
+ def __init__(self, timestamp, url, edition, topics, title, text) -> None: ...
16
+
17
+ def load_buriy_news(path): ...
18
+ def load_buriy_webhose(path): ...
@@ -0,0 +1,50 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ class CorporaText(Record):
7
+ __attributes__: Incomplete
8
+ id: Incomplete
9
+ parent_id: Incomplete
10
+ name: Incomplete
11
+ tags: Incomplete
12
+ pars: Incomplete
13
+ def __init__(self, id, parent_id, name, tags, pars) -> None: ...
14
+
15
+ class CorporaPar(Record):
16
+ __attributes__: Incomplete
17
+ id: Incomplete
18
+ sents: Incomplete
19
+ def __init__(self, id, sents) -> None: ...
20
+
21
+ class CorporaSent(Record):
22
+ __attributes__: Incomplete
23
+ id: Incomplete
24
+ text: Incomplete
25
+ tokens: Incomplete
26
+ def __init__(self, id, text, tokens) -> None: ...
27
+
28
+ class CorporaToken(Record):
29
+ __attributes__: Incomplete
30
+ id: Incomplete
31
+ rev_id: Incomplete
32
+ text: Incomplete
33
+ forms: Incomplete
34
+ def __init__(self, id, rev_id, text, forms) -> None: ...
35
+
36
+ class CorporaForm(Record):
37
+ __attributes__: Incomplete
38
+ id: Incomplete
39
+ text: Incomplete
40
+ grams: Incomplete
41
+ def __init__(self, id, text, grams) -> None: ...
42
+
43
+ def parse_grams(xml) -> Generator[Incomplete]: ...
44
+ def parse_forms(xml) -> Generator[Incomplete]: ...
45
+ def parse_tokens(xml) -> Generator[Incomplete]: ...
46
+ def parse_sents(xml) -> Generator[Incomplete]: ...
47
+ def parse_pars(xml) -> Generator[Incomplete]: ...
48
+ def parse_tags(xml) -> Generator[Incomplete]: ...
49
+ def parse_text(xml): ...
50
+ def load_corpora(path) -> Generator[Incomplete]: ...
@@ -0,0 +1,74 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ DEVSET: str
7
+ TESTSET: str
8
+ TXT: str
9
+ SPANS: str
10
+ OBJECTS: str
11
+ COREF: str
12
+ FACTS: str
13
+
14
+ class FactruSpan(Record):
15
+ __attributes__: Incomplete
16
+ id: Incomplete
17
+ type: Incomplete
18
+ start: Incomplete
19
+ stop: Incomplete
20
+ def __init__(self, id, type, start, stop) -> None: ...
21
+
22
+ class FactruObject(Record):
23
+ __attributes__: Incomplete
24
+ id: Incomplete
25
+ type: Incomplete
26
+ spans: Incomplete
27
+ def __init__(self, id, type, spans) -> None: ...
28
+
29
+ class FactruCorefSlot(Record):
30
+ __attributes__: Incomplete
31
+ type: Incomplete
32
+ value: Incomplete
33
+ def __init__(self, type, value) -> None: ...
34
+
35
+ class FactruCoref(Record):
36
+ __attributes__: Incomplete
37
+ id: Incomplete
38
+ objects: Incomplete
39
+ slots: Incomplete
40
+ def __init__(self, id, objects, slots) -> None: ...
41
+
42
+ class FactruFactSlot(Record):
43
+ __attributes__: Incomplete
44
+ type: Incomplete
45
+ ref: Incomplete
46
+ value: Incomplete
47
+ def __init__(self, type, ref, value) -> None: ...
48
+
49
+ class FactruFact(Record):
50
+ __attributes__: Incomplete
51
+ id: Incomplete
52
+ type: Incomplete
53
+ slots: Incomplete
54
+ def __init__(self, id, type, slots) -> None: ...
55
+
56
+ class FactruMarkup(Record):
57
+ __attributes__: Incomplete
58
+ id: Incomplete
59
+ text: Incomplete
60
+ objects: Incomplete
61
+ corefs: Incomplete
62
+ facts: Incomplete
63
+ def __init__(self, id, text, objects, corefs, facts) -> None: ...
64
+
65
+ def list_ids(dir, set) -> Generator[Incomplete]: ...
66
+ def part_path(id, dir, set, part): ...
67
+ def parse_spans(lines) -> Generator[Incomplete]: ...
68
+ def parse_objects(lines, spans) -> Generator[Incomplete]: ...
69
+ def parse_coref_slots(lines) -> Generator[Incomplete]: ...
70
+ def parse_corefs(lines, objects) -> Generator[Incomplete]: ...
71
+ def parse_facts_slots(lines, id_corefs, id_spans) -> Generator[Incomplete]: ...
72
+ def parse_facts(lines, corefs, spans) -> Generator[Incomplete]: ...
73
+ def load_id(id, dir, set): ...
74
+ def load_factru(dir, sets=["devset", "testset"]) -> Generator[Incomplete]: ...
@@ -0,0 +1,21 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ class GareevToken(Record):
7
+ __attributes__: Incomplete
8
+ text: Incomplete
9
+ tag: Incomplete
10
+ def __init__(self, text, tag) -> None: ...
11
+
12
+ class GareevRecord(Record):
13
+ __attributes__: Incomplete
14
+ tokens: Incomplete
15
+ def __init__(self, tokens) -> None: ...
16
+
17
+ def parse_conll(lines) -> Generator[Incomplete]: ...
18
+ def parse_gareev(lines): ...
19
+ def load_id(id, dir): ...
20
+ def list_ids(dir) -> Generator[Incomplete]: ...
21
+ def load_gareev(dir) -> Generator[Incomplete]: ...
@@ -0,0 +1 @@
1
+ def load_gramru(path): ...
@@ -0,0 +1,19 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ class LentaRecord(Record):
7
+ __attributes__: Incomplete
8
+ url: Incomplete
9
+ title: Incomplete
10
+ text: Incomplete
11
+ topic: Incomplete
12
+ tags: Incomplete
13
+ date: Incomplete
14
+ def __init__(self, url, title, text, topic, tags, date: Incomplete | None = None) -> None: ...
15
+
16
+ def parse_lenta(lines) -> Generator[Incomplete]: ...
17
+ def parse_lenta2(lines) -> Generator[Incomplete]: ...
18
+ def load_lenta(path): ...
19
+ def load_lenta2(path): ...
@@ -0,0 +1,14 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ class LibrusecRecord(Record):
7
+ __attributes__: Incomplete
8
+ id: Incomplete
9
+ text: Incomplete
10
+ def __init__(self, id, text) -> None: ...
11
+
12
+ def flush(id, buffer): ...
13
+ def parse_librusec(lines) -> Generator[Incomplete]: ...
14
+ def load_librusec(path): ...
@@ -0,0 +1,54 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from corus.record import Record
4
+
5
+ class Meta(Record):
6
+ __attributes__: Incomplete
7
+ title: Incomplete
8
+ url: Incomplete
9
+ description: Incomplete
10
+ stats: Incomplete
11
+ instruction: Incomplete
12
+ tags: Incomplete
13
+ functions: Incomplete
14
+ def __init__(
15
+ self,
16
+ title,
17
+ url: Incomplete | None = None,
18
+ description: Incomplete | None = None,
19
+ stats: Incomplete | None = None,
20
+ instruction=(),
21
+ tags=(),
22
+ functions=(),
23
+ ) -> None: ...
24
+
25
+ class Group(Record):
26
+ __attributes__: Incomplete
27
+ title: Incomplete
28
+ url: Incomplete
29
+ description: Incomplete
30
+ instruction: Incomplete
31
+ metas: Incomplete
32
+ def __init__(
33
+ self, title, url: Incomplete | None = None, description: Incomplete | None = None, instruction=(), metas=()
34
+ ) -> None: ...
35
+
36
+ def is_group(item): ...
37
+
38
+ class Stats(Record):
39
+ __attributes__: Incomplete
40
+ bytes: Incomplete
41
+ count: Incomplete
42
+ def __init__(self, bytes: Incomplete | None = None, count: Incomplete | None = None) -> None: ...
43
+
44
+ NER: str
45
+ NEWS: str
46
+ FICTION: str
47
+ SOCIAL: str
48
+ MORPH: str
49
+ SYNTAX: str
50
+ EMB: str
51
+ SIM: str
52
+ SENTIMENT: str
53
+ WEB: str
54
+ METAS: Incomplete
@@ -0,0 +1,28 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ __all__ = ["load_mokoron"]
7
+
8
+ class MokoronRecord(Record):
9
+ __attributes__: Incomplete
10
+ id: Incomplete
11
+ timestamp: Incomplete
12
+ user: Incomplete
13
+ text: Incomplete
14
+ sentiment: Incomplete
15
+ replies: Incomplete
16
+ retweets: Incomplete
17
+ favourites: Incomplete
18
+ posts: Incomplete
19
+ followers: Incomplete
20
+ friends: Incomplete
21
+ lists: Incomplete
22
+ def __init__(
23
+ self, id, timestamp, user, text, sentiment, replies, retweets, favourites, posts, followers, friends, lists
24
+ ) -> None: ...
25
+ @classmethod
26
+ def from_match(cls, match): ...
27
+
28
+ def load_mokoron(path) -> Generator[Incomplete]: ...
@@ -0,0 +1,24 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from corus.record import Record
4
+
5
+ __all__ = ["load_morphoru_gicrya", "load_morphoru_rnc", "load_morphoru_corpora"]
6
+
7
+ class MorphoSent(Record):
8
+ __attributes__: Incomplete
9
+ tokens: Incomplete
10
+ attrs: Incomplete
11
+ def __init__(self, tokens, attrs=()) -> None: ...
12
+
13
+ class MorphoToken(Record):
14
+ __attributes__: Incomplete
15
+ text: Incomplete
16
+ lemma: Incomplete
17
+ pos: Incomplete
18
+ feats: Incomplete
19
+ feats2: Incomplete
20
+ def __init__(self, text, lemma, pos, feats, feats2: Incomplete | None = None) -> None: ...
21
+
22
+ def load_morphoru_gicrya(path): ...
23
+ def load_morphoru_rnc(path): ...
24
+ def load_morphoru_corpora(path): ...
@@ -0,0 +1,28 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ class Ne5Span(Record):
7
+ __attributes__: Incomplete
8
+ index: Incomplete
9
+ type: Incomplete
10
+ start: Incomplete
11
+ stop: Incomplete
12
+ text: Incomplete
13
+ def __init__(self, index, type, start, stop, text) -> None: ...
14
+
15
+ class Ne5Markup(Record):
16
+ __attributes__: Incomplete
17
+ id: Incomplete
18
+ text: Incomplete
19
+ spans: Incomplete
20
+ def __init__(self, id, text, spans) -> None: ...
21
+
22
+ def list_ids(dir) -> Generator[Incomplete]: ...
23
+ def txt_path(id, dir): ...
24
+ def ann_path(id, dir): ...
25
+ def parse_spans(lines) -> Generator[Incomplete]: ...
26
+ def load_text(path): ...
27
+ def load_id(id, dir): ...
28
+ def load_ne5(dir) -> Generator[Incomplete]: ...
@@ -0,0 +1,46 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from corus.record import Record
4
+
5
+ __all__ = [
6
+ "load_ods_interfax",
7
+ "load_ods_gazeta",
8
+ "load_ods_izvestia",
9
+ "load_ods_meduza",
10
+ "load_ods_ria",
11
+ "load_ods_rt",
12
+ "load_ods_tass",
13
+ ]
14
+
15
+ class NewsRecord(Record):
16
+ __attributes__: Incomplete
17
+ timestamp: Incomplete
18
+ url: Incomplete
19
+ edition: Incomplete
20
+ topics: Incomplete
21
+ authors: Incomplete
22
+ title: Incomplete
23
+ text: Incomplete
24
+ stats: Incomplete
25
+ def __init__(self, timestamp, url, edition, topics, authors, title, text, stats) -> None: ...
26
+
27
+ class Stats(Record):
28
+ __attributes__: Incomplete
29
+ fb: Incomplete
30
+ vk: Incomplete
31
+ ok: Incomplete
32
+ twitter: Incomplete
33
+ lj: Incomplete
34
+ tg: Incomplete
35
+ likes: Incomplete
36
+ views: Incomplete
37
+ comments: Incomplete
38
+ def __init__(self, fb, vk, ok, twitter, lj, tg, likes, views, comments) -> None: ...
39
+
40
+ def load_ods_interfax(path): ...
41
+ def load_ods_gazeta(path): ...
42
+ def load_ods_izvestia(path): ...
43
+ def load_ods_meduza(path): ...
44
+ def load_ods_ria(path): ...
45
+ def load_ods_rt(path): ...
46
+ def load_ods_tass(path): ...
@@ -0,0 +1,49 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ class OmniaDoc(Record):
7
+ __attributes__: Incomplete
8
+ id: Incomplete
9
+ attrs: Incomplete
10
+ pars: Incomplete
11
+ def __init__(self, id, attrs, pars) -> None: ...
12
+
13
+ class OmniaPar(Record):
14
+ __attributes__: Incomplete
15
+ sents: Incomplete
16
+ def __init__(self, sents) -> None: ...
17
+
18
+ class OmniaSent(Record):
19
+ __attributes__: Incomplete
20
+ tokens: Incomplete
21
+ def __init__(self, tokens) -> None: ...
22
+
23
+ class OmniaToken(Record):
24
+ __attributes__: Incomplete
25
+ text: Incomplete
26
+ lemma: Incomplete
27
+ atag: Incomplete
28
+ tag: Incomplete
29
+ ztag: Incomplete
30
+ g: Incomplete
31
+ def __init__(self, text, lemma, atag, tag, ztag, g) -> None: ...
32
+
33
+ DID: str
34
+ G_TAG: str
35
+ S_END: str
36
+ P_END: str
37
+ DOC_END: str
38
+
39
+ def take_until(stream, value) -> Generator[Incomplete]: ...
40
+ def group_bounds(stream, end) -> Generator[Incomplete]: ...
41
+ def group_doc_bounds(stream) -> Generator[Incomplete]: ...
42
+ def group_pairs(stream) -> Generator[Incomplete]: ...
43
+ def parse_tokens(lines) -> Generator[Incomplete]: ...
44
+ def parse_sents(lines) -> Generator[Incomplete]: ...
45
+ def parse_pars(lines) -> Generator[Incomplete]: ...
46
+ def parse_tag_attrs(tag) -> Generator[Incomplete]: ...
47
+ def parse_doc_header(header): ...
48
+ def parse_docs(lines) -> Generator[Incomplete]: ...
49
+ def load_omnia(path) -> Generator[Incomplete, Incomplete, None]: ...
@@ -0,0 +1,27 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ TEXT: str
7
+ ANNO: str
8
+
9
+ class PersonsSpan(Record):
10
+ __attributes__: Incomplete
11
+ id: Incomplete
12
+ start: Incomplete
13
+ stop: Incomplete
14
+ value: Incomplete
15
+ def __init__(self, id, start, stop, value) -> None: ...
16
+
17
+ class PersonsMarkup(Record):
18
+ __attributes__: Incomplete
19
+ text: Incomplete
20
+ spans: Incomplete
21
+ def __init__(self, text, spans) -> None: ...
22
+
23
+ def list_ids(path) -> Generator[Incomplete]: ...
24
+ def part_names(ids, part) -> Generator[Incomplete]: ...
25
+ def parse_anno(text) -> Generator[Incomplete]: ...
26
+ def load_ids(ids, path) -> Generator[Incomplete]: ...
27
+ def load_persons(path): ...
@@ -0,0 +1,21 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from corus.record import Record
4
+
5
+ __all__ = ["load_ria_raw", "load_ria"]
6
+
7
+ class RiaRawRecord(Record):
8
+ __attributes__: Incomplete
9
+ title: Incomplete
10
+ text: Incomplete
11
+ def __init__(self, title, text) -> None: ...
12
+
13
+ class RiaRecord(Record):
14
+ __attributes__: Incomplete
15
+ title: Incomplete
16
+ prefix: Incomplete
17
+ text: Incomplete
18
+ def __init__(self, title, prefix, text) -> None: ...
19
+
20
+ def load_ria_raw(path): ...
21
+ def load_ria(path): ...
@@ -0,0 +1,27 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ class RuDReCRecord(Record):
7
+ __attributes__: Incomplete
8
+ file_name: Incomplete
9
+ text: Incomplete
10
+ sentence_id: Incomplete
11
+ entities: Incomplete
12
+ def __init__(self, file_name, text, sentence_id, entities) -> None: ...
13
+
14
+ class RuDReCEntity(Record):
15
+ __attributes__: Incomplete
16
+ entity_id: Incomplete
17
+ entity_text: Incomplete
18
+ entity_type: Incomplete
19
+ start: Incomplete
20
+ end: Incomplete
21
+ concept_id: Incomplete
22
+ concept_name: Incomplete
23
+ def __init__(self, entity_id, entity_text, entity_type, start, end, concept_id, concept_name) -> None: ...
24
+
25
+ def parse_entities(items) -> Generator[Incomplete]: ...
26
+ def parse_rudrec(items) -> Generator[Incomplete]: ...
27
+ def load_rudrec(path): ...
@@ -0,0 +1,16 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from corus.record import Record
4
+
5
+ __all__ = ["load_russe_hj", "load_russe_rt", "load_russe_ae"]
6
+
7
+ class RusseSemRecord(Record):
8
+ __attributes__: Incomplete
9
+ word1: Incomplete
10
+ word2: Incomplete
11
+ sim: Incomplete
12
+ def __init__(self, word1, word2, sim) -> None: ...
13
+
14
+ def load_russe_hj(path): ...
15
+ def load_russe_rt(path): ...
16
+ def load_russe_ae(path): ...
@@ -0,0 +1,14 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator
3
+
4
+ from corus.record import Record
5
+
6
+ class SimlexRecord(Record):
7
+ __attributes__: Incomplete
8
+ word1: Incomplete
9
+ word2: Incomplete
10
+ score: Incomplete
11
+ def __init__(self, word1, word2, score) -> None: ...
12
+
13
+ def parse_simlex(lines) -> Generator[Incomplete]: ...
14
+ def load_simlex(path): ...
@@ -0,0 +1,10 @@
1
+ from .arzamas import *
2
+ from .fontanka import *
3
+ from .interfax import *
4
+ from .kp import *
5
+ from .lenta import *
6
+ from .magazines import *
7
+ from .nplus1 import *
8
+ from .proza import *
9
+ from .social import *
10
+ from .subtitles import *
@@ -0,0 +1,6 @@
1
+ from _typeshed import Incomplete
2
+
3
+ __all__ = ["load_taiga_arzamas_metas", "load_taiga_arzamas"]
4
+
5
+ def load_taiga_arzamas_metas(path, offset: int = 0, count: int = 1): ...
6
+ def load_taiga_arzamas(path, metas: Incomplete | None = None, offset: int = 144896, count: int = 311): ...