|
| 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 commit comments