Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 1,201 Bytes
e1c08c5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
from typing import NamedTuple, Union, Dict, Iterator, Any
_SearchTree = Dict[str, Union['_SearchTree', dict[str, dict[str, Any]]]]
_SEARCH_TREE: _SearchTree
class EmojiMatch:
emoji: str
start: int
end: int
data: dict[str, Any] | None
def __init__(self, emoji: str, start: int,
end: int, data: dict | None): ...
def data_copy(self) -> Dict[str, Any]: ...
def is_zwj(self) -> bool: ...
def split(self) -> EmojiMatchZWJ | EmojiMatch: ...
def __repr__(self) -> str: ...
class EmojiMatchZWJ(EmojiMatch):
def __init__(self, match: EmojiMatch): ...
def join(self) -> str: ...
def is_zwj(self) -> bool: ...
def split(self) -> EmojiMatchZWJ: ...
def __repr__(self) -> str: ...
class EmojiMatchZWJNonRGI(EmojiMatchZWJ):
def __init__(self, first_emoji_match: EmojiMatch,
second_emoji_match: EmojiMatch): ...
class Token(NamedTuple):
chars: str
value: str | EmojiMatch
def tokenize(string, keep_zwj: bool) -> Iterator[Token]: ...
def filter_tokens(matches: Iterator[Token], emoji_only: bool,
join_emoji: bool) -> Iterator[Token]: ...
def get_search_tree() -> _SearchTree: ...
|