id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13,200 | explosion/spaCy | explosion_spaCy/spacy/lang/lg/__init__.py | spacy.lang.lg.LugandaDefaults | from ...language import BaseDefaults, Language
from .lex_attrs import LEX_ATTRS
from .punctuation import TOKENIZER_INFIXES
from .stop_words import STOP_WORDS
class LugandaDefaults(BaseDefaults):
lex_attr_getters = LEX_ATTRS
infixes = TOKENIZER_INFIXES
stop_words = STOP_WORDS |
class LugandaDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 1 | 0 | 0 |
13,201 | explosion/spaCy | explosion_spaCy/spacy/lang/lij/__init__.py | spacy.lang.lij.Ligurian | from ...language import BaseDefaults, Language
class Ligurian(Language):
lang = 'lij'
Defaults = LigurianDefaults |
class Ligurian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,202 | explosion/spaCy | explosion_spaCy/spacy/lang/lij/__init__.py | spacy.lang.lij.LigurianDefaults | from .punctuation import TOKENIZER_INFIXES
from .stop_words import STOP_WORDS
from ...language import BaseDefaults, Language
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
class LigurianDefaults(BaseDefaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
infixes = TOKENIZER_INFIXES
stop_words = STOP... |
class LigurianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 1 | 0 | 0 |
13,203 | explosion/spaCy | explosion_spaCy/spacy/lang/lt/__init__.py | spacy.lang.lt.Lithuanian | from ...language import BaseDefaults, Language
class Lithuanian(Language):
lang = 'lt'
Defaults = LithuanianDefaults |
class Lithuanian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,204 | explosion/spaCy | explosion_spaCy/spacy/lang/lt/__init__.py | spacy.lang.lt.LithuanianDefaults | from ...language import BaseDefaults, Language
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_SUFFIXES
from .stop_words import STOP_WORDS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .lex_attrs import LEX_ATTRS
class LithuanianDefaults(BaseDefaults):
infixes = TOKENIZER_INFIXES
suffixes =... |
class LithuanianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
13,205 | explosion/spaCy | explosion_spaCy/spacy/lang/lv/__init__.py | spacy.lang.lv.Latvian | from ...language import BaseDefaults, Language
class Latvian(Language):
lang = 'lv'
Defaults = LatvianDefaults |
class Latvian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,206 | explosion/spaCy | explosion_spaCy/spacy/lang/lv/__init__.py | spacy.lang.lv.LatvianDefaults | from .stop_words import STOP_WORDS
from ...language import BaseDefaults, Language
class LatvianDefaults(BaseDefaults):
stop_words = STOP_WORDS |
class LatvianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
13,207 | explosion/spaCy | explosion_spaCy/spacy/lang/mk/__init__.py | spacy.lang.mk.Macedonian | from ...language import BaseDefaults, Language
class Macedonian(Language):
lang = 'mk'
Defaults = MacedonianDefaults |
class Macedonian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,208 | explosion/spaCy | explosion_spaCy/spacy/lang/mk/__init__.py | spacy.lang.mk.MacedonianDefaults | from ..tokenizer_exceptions import BASE_EXCEPTIONS
from ...language import BaseDefaults, Language
from ...attrs import LANG
from ...util import update_exc
from .stop_words import STOP_WORDS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .lex_attrs import LEX_ATTRS
class MacedonianDefaults(BaseDefaults):
... |
class MacedonianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 6 | 4 | 5 | 2 | 6 | 4 | 5 | 0 | 1 | 0 | 0 |
13,209 | explosion/spaCy | explosion_spaCy/spacy/lang/mk/lemmatizer.py | spacy.lang.mk.lemmatizer.MacedonianLemmatizer | from ...tokens import Token
from collections import OrderedDict
from typing import List
from ...pipeline import Lemmatizer
class MacedonianLemmatizer(Lemmatizer):
def rule_lemmatize(self, token: Token) -> List[str]:
string = token.text
univ_pos = token.pos_.lower()
if univ_pos in ('', 'eol... |
class MacedonianLemmatizer(Lemmatizer):
def rule_lemmatize(self, token: Token) -> List[str]:
pass | 2 | 0 | 50 | 8 | 42 | 0 | 12 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 51 | 8 | 43 | 14 | 41 | 0 | 36 | 14 | 34 | 12 | 1 | 3 | 12 |
13,210 | explosion/spaCy | explosion_spaCy/spacy/lang/ml/__init__.py | spacy.lang.ml.Malayalam | from ...language import BaseDefaults, Language
class Malayalam(Language):
lang = 'ml'
Defaults = MalayalamDefaults |
class Malayalam(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,211 | explosion/spaCy | explosion_spaCy/spacy/lang/ml/__init__.py | spacy.lang.ml.MalayalamDefaults | from .lex_attrs import LEX_ATTRS
from .stop_words import STOP_WORDS
from ...language import BaseDefaults, Language
class MalayalamDefaults(BaseDefaults):
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS |
class MalayalamDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,212 | explosion/spaCy | explosion_spaCy/spacy/lang/mr/__init__.py | spacy.lang.mr.Marathi | from ...language import BaseDefaults, Language
class Marathi(Language):
lang = 'mr'
Defaults = MarathiDefaults |
class Marathi(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,213 | explosion/spaCy | explosion_spaCy/spacy/lang/mr/__init__.py | spacy.lang.mr.MarathiDefaults | from ...language import BaseDefaults, Language
from .stop_words import STOP_WORDS
class MarathiDefaults(BaseDefaults):
stop_words = STOP_WORDS |
class MarathiDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
13,214 | explosion/spaCy | explosion_spaCy/spacy/lang/ms/__init__.py | spacy.lang.ms.Malay | from ...language import BaseDefaults, Language
class Malay(Language):
lang = 'ms'
Defaults = MalayDefaults |
class Malay(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,215 | explosion/spaCy | explosion_spaCy/spacy/lang/ms/__init__.py | spacy.lang.ms.MalayDefaults | from .syntax_iterators import SYNTAX_ITERATORS
from .lex_attrs import LEX_ATTRS
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES
from ...language import BaseDefaults, Language
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .stop_words import STOP_WORDS
class MalayDefaults... |
class MalayDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 8 | 7 | 0 | 8 | 8 | 7 | 0 | 1 | 0 | 0 |
13,216 | explosion/spaCy | explosion_spaCy/spacy/lang/nb/__init__.py | spacy.lang.nb.Norwegian | from ...language import BaseDefaults, Language
class Norwegian(Language):
lang = 'nb'
Defaults = NorwegianDefaults |
class Norwegian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,217 | explosion/spaCy | explosion_spaCy/spacy/lang/nb/__init__.py | spacy.lang.nb.NorwegianDefaults | from ...language import BaseDefaults, Language
from .syntax_iterators import SYNTAX_ITERATORS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES
from .stop_words import STOP_WORDS
class NorwegianDefaults(BaseDefaults):
tokenizer... |
class NorwegianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 7 | 6 | 0 | 7 | 7 | 6 | 0 | 1 | 0 | 0 |
13,218 | explosion/spaCy | explosion_spaCy/spacy/lang/ne/__init__.py | spacy.lang.ne.Nepali | from ...language import BaseDefaults, Language
class Nepali(Language):
lang = 'ne'
Defaults = NepaliDefaults |
class Nepali(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,219 | explosion/spaCy | explosion_spaCy/spacy/lang/ne/__init__.py | spacy.lang.ne.NepaliDefaults | from .stop_words import STOP_WORDS
from .lex_attrs import LEX_ATTRS
from ...language import BaseDefaults, Language
class NepaliDefaults(BaseDefaults):
stop_words = STOP_WORDS
lex_attr_getters = LEX_ATTRS |
class NepaliDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,220 | explosion/spaCy | explosion_spaCy/spacy/lang/nl/__init__.py | spacy.lang.nl.Dutch | from ...language import BaseDefaults, Language
class Dutch(Language):
lang = 'nl'
Defaults = DutchDefaults |
class Dutch(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,221 | explosion/spaCy | explosion_spaCy/spacy/lang/nl/__init__.py | spacy.lang.nl.DutchDefaults | from ...language import BaseDefaults, Language
from .lex_attrs import LEX_ATTRS
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES
from .stop_words import STOP_WORDS
from .syntax_iterators import SYNTAX_ITERATORS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
class DutchDefaults... |
class DutchDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 8 | 7 | 0 | 8 | 8 | 7 | 0 | 1 | 0 | 0 |
13,222 | explosion/spaCy | explosion_spaCy/spacy/lang/nl/lemmatizer.py | spacy.lang.nl.lemmatizer.DutchLemmatizer | from ...tokens import Token
from ...pipeline import Lemmatizer
from typing import List, Tuple
class DutchLemmatizer(Lemmatizer):
@classmethod
def get_lookups_config(cls, mode: str) -> Tuple[List[str], List[str]]:
if mode == 'rule':
required = ['lemma_lookup', 'lemma_rules', 'lemma_exc', 'l... |
class DutchLemmatizer(Lemmatizer):
@classmethod
def get_lookups_config(cls, mode: str) -> Tuple[List[str], List[str]]:
pass
def lookup_lemmatize(self, token: Token) -> List[str]:
'''Overrides parent method so that a lowercased version of the string
is used to search the lookup tab... | 5 | 1 | 37 | 1 | 32 | 5 | 6 | 0.15 | 1 | 5 | 0 | 0 | 2 | 0 | 3 | 3 | 116 | 4 | 97 | 24 | 92 | 15 | 80 | 23 | 76 | 16 | 1 | 3 | 19 |
13,223 | explosion/spaCy | explosion_spaCy/spacy/lang/nn/__init__.py | spacy.lang.nn.NorwegianNynorsk | from ...language import BaseDefaults, Language
class NorwegianNynorsk(Language):
lang = 'nn'
Defaults = NorwegianNynorskDefaults |
class NorwegianNynorsk(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,224 | explosion/spaCy | explosion_spaCy/spacy/lang/nn/__init__.py | spacy.lang.nn.NorwegianNynorskDefaults | from ..nb import SYNTAX_ITERATORS
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from ...language import BaseDefaults, Language
class NorwegianNynorskDefaults(BaseDefaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
pr... |
class NorwegianNynorskDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
13,225 | explosion/spaCy | explosion_spaCy/spacy/lang/pl/__init__.py | spacy.lang.pl.Polish | from ...language import BaseDefaults, Language
class Polish(Language):
lang = 'pl'
Defaults = PolishDefaults |
class Polish(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,226 | explosion/spaCy | explosion_spaCy/spacy/lang/pl/__init__.py | spacy.lang.pl.PolishDefaults | from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES
from ...language import BaseDefaults, Language
from .lex_attrs import LEX_ATTRS
from .stop_words import STOP_WORDS
class PolishDefaults(BaseDefaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
prefixes = TOKENIZER_PREFIXES
... |
class PolishDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 7 | 6 | 0 | 7 | 7 | 6 | 0 | 1 | 0 | 0 |
13,227 | explosion/spaCy | explosion_spaCy/spacy/lang/pl/lemmatizer.py | spacy.lang.pl.lemmatizer.PolishLemmatizer | from ...pipeline import Lemmatizer
from typing import Dict, List, Tuple
from ...tokens import Token
class PolishLemmatizer(Lemmatizer):
@classmethod
def get_lookups_config(cls, mode: str) -> Tuple[List[str], List[str]]:
if mode == 'pos_lookup':
required = ['lemma_lookup_adj', 'lemma_lookup... |
class PolishLemmatizer(Lemmatizer):
@classmethod
def get_lookups_config(cls, mode: str) -> Tuple[List[str], List[str]]:
pass
def pos_lookup_lemmatize(self, token: Token) -> List[str]:
pass
def lemmatize_adj(self, string: str, morphology: dict, lookup_table: Dict[str, str]) -> List[st... | 7 | 0 | 14 | 0 | 12 | 2 | 4 | 0.19 | 1 | 3 | 0 | 0 | 4 | 0 | 5 | 5 | 80 | 5 | 63 | 22 | 50 | 12 | 49 | 15 | 43 | 7 | 1 | 3 | 22 |
13,228 | explosion/spaCy | explosion_spaCy/spacy/lang/pt/__init__.py | spacy.lang.pt.Portuguese | from ...language import BaseDefaults, Language
class Portuguese(Language):
lang = 'pt'
Defaults = PortugueseDefaults |
class Portuguese(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,229 | explosion/spaCy | explosion_spaCy/spacy/lang/pt/__init__.py | spacy.lang.pt.PortugueseDefaults | from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES
from .lex_attrs import LEX_ATTRS
from .stop_words import STOP_WORDS
from ...language import BaseDefaults, Language
from .syntax_iterators import SYNTAX_ITERATORS
class PortugueseDefaults(BaseDefaults):... |
class PortugueseDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 7 | 6 | 0 | 7 | 7 | 6 | 0 | 1 | 0 | 0 |
13,230 | explosion/spaCy | explosion_spaCy/spacy/lang/ro/__init__.py | spacy.lang.ro.Romanian | from ...language import BaseDefaults, Language
class Romanian(Language):
lang = 'ro'
Defaults = RomanianDefaults |
class Romanian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,231 | explosion/spaCy | explosion_spaCy/spacy/lang/ro/__init__.py | spacy.lang.ro.RomanianDefaults | from ...language import BaseDefaults, Language
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .stop_words import STOP_WORDS
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES
from .lex_attrs import LEX_ATTRS
class RomanianDefaults(BaseDefaults):
tokenizer_exceptions = T... |
class RomanianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 7 | 6 | 0 | 7 | 7 | 6 | 0 | 1 | 0 | 0 |
13,232 | explosion/spaCy | explosion_spaCy/spacy/lang/ru/__init__.py | spacy.lang.ru.Russian | from ...language import BaseDefaults, Language
class Russian(Language):
lang = 'ru'
Defaults = RussianDefaults |
class Russian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,233 | explosion/spaCy | explosion_spaCy/spacy/lang/ru/__init__.py | spacy.lang.ru.RussianDefaults | from ...language import BaseDefaults, Language
from ..punctuation import COMBINING_DIACRITICS_TOKENIZER_INFIXES, COMBINING_DIACRITICS_TOKENIZER_SUFFIXES
from .lex_attrs import LEX_ATTRS
from .stop_words import STOP_WORDS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
class RussianDefaults(BaseDefaults):
to... |
class RussianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
13,234 | explosion/spaCy | explosion_spaCy/spacy/lang/ru/lemmatizer.py | spacy.lang.ru.lemmatizer.RussianLemmatizer | from ...pipeline.lemmatizer import lemmatizer_score
from ...symbols import POS
from typing import Callable, Dict, List, Optional, Tuple
from ...tokens import Token
from ...pipeline import Lemmatizer
from thinc.api import Model
from ...vocab import Vocab
class RussianLemmatizer(Lemmatizer):
def __init__(self, voca... |
class RussianLemmatizer(Lemmatizer):
def __init__(self, vocab: Vocab, model: Optional[Model], name: str='lemmatizer', *, mode: str='pymorphy3', overwrite: bool=False, scorer: Optional[Callable]=lemmatizer_score) -> None:
pass
def _pymorphy_lemmatize(self, token: Token) -> List[str]:
pass
... | 8 | 0 | 17 | 0 | 16 | 1 | 4 | 0.05 | 1 | 7 | 0 | 1 | 7 | 1 | 7 | 7 | 123 | 6 | 114 | 33 | 95 | 6 | 67 | 24 | 57 | 15 | 1 | 3 | 28 |
13,235 | explosion/spaCy | explosion_spaCy/spacy/lang/sa/__init__.py | spacy.lang.sa.Sanskrit | from ...language import BaseDefaults, Language
class Sanskrit(Language):
lang = 'sa'
Defaults = SanskritDefaults |
class Sanskrit(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,236 | explosion/spaCy | explosion_spaCy/spacy/lang/sa/__init__.py | spacy.lang.sa.SanskritDefaults | from .stop_words import STOP_WORDS
from ...language import BaseDefaults, Language
from .lex_attrs import LEX_ATTRS
class SanskritDefaults(BaseDefaults):
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS |
class SanskritDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,237 | explosion/spaCy | explosion_spaCy/spacy/lang/si/__init__.py | spacy.lang.si.Sinhala | from ...language import BaseDefaults, Language
class Sinhala(Language):
lang = 'si'
Defaults = SinhalaDefaults |
class Sinhala(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,238 | explosion/spaCy | explosion_spaCy/spacy/lang/si/__init__.py | spacy.lang.si.SinhalaDefaults | from ...language import BaseDefaults, Language
from .lex_attrs import LEX_ATTRS
from .stop_words import STOP_WORDS
class SinhalaDefaults(BaseDefaults):
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS |
class SinhalaDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,239 | explosion/spaCy | explosion_spaCy/spacy/lang/sk/__init__.py | spacy.lang.sk.Slovak | from ...language import BaseDefaults, Language
class Slovak(Language):
lang = 'sk'
Defaults = SlovakDefaults |
class Slovak(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,240 | explosion/spaCy | explosion_spaCy/spacy/lang/sk/__init__.py | spacy.lang.sk.SlovakDefaults | from ...language import BaseDefaults, Language
from .lex_attrs import LEX_ATTRS
from .stop_words import STOP_WORDS
class SlovakDefaults(BaseDefaults):
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS |
class SlovakDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,241 | explosion/spaCy | explosion_spaCy/spacy/lang/sl/__init__.py | spacy.lang.sl.Slovenian | from ...language import BaseDefaults, Language
class Slovenian(Language):
lang = 'sl'
Defaults = SlovenianDefaults |
class Slovenian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,242 | explosion/spaCy | explosion_spaCy/spacy/lang/sl/__init__.py | spacy.lang.sl.SlovenianDefaults | from .stop_words import STOP_WORDS
from .lex_attrs import LEX_ATTRS
from .punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES
from ...language import BaseDefaults, Language
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
class SlovenianDefaults(BaseDefaults):
stop_words = STOP_WORDS... |
class SlovenianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 7 | 6 | 0 | 7 | 7 | 6 | 0 | 1 | 0 | 0 |
13,243 | explosion/spaCy | explosion_spaCy/spacy/lang/sq/__init__.py | spacy.lang.sq.Albanian | from ...language import BaseDefaults, Language
class Albanian(Language):
lang = 'sq'
Defaults = AlbanianDefaults |
class Albanian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,244 | explosion/spaCy | explosion_spaCy/spacy/lang/sq/__init__.py | spacy.lang.sq.AlbanianDefaults | from .stop_words import STOP_WORDS
from ...language import BaseDefaults, Language
class AlbanianDefaults(BaseDefaults):
stop_words = STOP_WORDS |
class AlbanianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
13,245 | explosion/spaCy | explosion_spaCy/spacy/lang/sr/__init__.py | spacy.lang.sr.Serbian | from ...language import BaseDefaults, Language
class Serbian(Language):
lang = 'sr'
Defaults = SerbianDefaults |
class Serbian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,246 | explosion/spaCy | explosion_spaCy/spacy/lang/sr/__init__.py | spacy.lang.sr.SerbianDefaults | from .punctuation import TOKENIZER_INFIXES, TOKENIZER_SUFFIXES
from .lex_attrs import LEX_ATTRS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from ...language import BaseDefaults, Language
from .stop_words import STOP_WORDS
class SerbianDefaults(BaseDefaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
... |
class SerbianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
13,247 | explosion/spaCy | explosion_spaCy/spacy/lang/sv/__init__.py | spacy.lang.sv.Swedish | from ...language import BaseDefaults, Language
class Swedish(Language):
lang = 'sv'
Defaults = SwedishDefaults |
class Swedish(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,248 | explosion/spaCy | explosion_spaCy/spacy/lang/sv/__init__.py | spacy.lang.sv.SwedishDefaults | from .punctuation import TOKENIZER_INFIXES, TOKENIZER_SUFFIXES
from ...language import BaseDefaults, Language
from .lex_attrs import LEX_ATTRS
from .stop_words import STOP_WORDS
from .syntax_iterators import SYNTAX_ITERATORS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
class SwedishDefaults(BaseDefaults):
... |
class SwedishDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 7 | 6 | 0 | 7 | 7 | 6 | 0 | 1 | 0 | 0 |
13,249 | explosion/spaCy | explosion_spaCy/spacy/lang/ta/__init__.py | spacy.lang.ta.Tamil | from ...language import BaseDefaults, Language
class Tamil(Language):
lang = 'ta'
Defaults = TamilDefaults |
class Tamil(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,250 | explosion/spaCy | explosion_spaCy/spacy/lang/ta/__init__.py | spacy.lang.ta.TamilDefaults | from .lex_attrs import LEX_ATTRS
from ...language import BaseDefaults, Language
from .stop_words import STOP_WORDS
class TamilDefaults(BaseDefaults):
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS |
class TamilDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,251 | explosion/spaCy | explosion_spaCy/spacy/lang/te/__init__.py | spacy.lang.te.Telugu | from ...language import BaseDefaults, Language
class Telugu(Language):
lang = 'te'
Defaults = TeluguDefaults |
class Telugu(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,252 | explosion/spaCy | explosion_spaCy/spacy/lang/te/__init__.py | spacy.lang.te.TeluguDefaults | from .lex_attrs import LEX_ATTRS
from ...language import BaseDefaults, Language
from .stop_words import STOP_WORDS
class TeluguDefaults(BaseDefaults):
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS |
class TeluguDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,253 | explosion/spaCy | explosion_spaCy/spacy/lang/th/__init__.py | spacy.lang.th.Thai | from ...language import BaseDefaults, Language
class Thai(Language):
lang = 'th'
Defaults = ThaiDefaults |
class Thai(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,254 | explosion/spaCy | explosion_spaCy/spacy/lang/th/__init__.py | spacy.lang.th.ThaiDefaults | from .stop_words import STOP_WORDS
from ...util import DummyTokenizer, load_config_from_str, registry
from ...language import BaseDefaults, Language
from .lex_attrs import LEX_ATTRS
class ThaiDefaults(BaseDefaults):
config = load_config_from_str(DEFAULT_CONFIG)
lex_attr_getters = LEX_ATTRS
stop_words = STO... |
class ThaiDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 1 | 0 | 0 |
13,255 | explosion/spaCy | explosion_spaCy/spacy/lang/th/__init__.py | spacy.lang.th.ThaiTokenizer | from ...vocab import Vocab
from ...tokens import Doc
from ...util import DummyTokenizer, load_config_from_str, registry
class ThaiTokenizer(DummyTokenizer):
def __init__(self, vocab: Vocab) -> None:
try:
from pythainlp.tokenize import word_tokenize
except ImportError:
raise... |
class ThaiTokenizer(DummyTokenizer):
def __init__(self, vocab: Vocab) -> None:
pass
def __call__(self, text: str) -> Doc:
pass | 3 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 1 | 3 | 0 | 0 | 2 | 2 | 2 | 8 | 16 | 1 | 15 | 8 | 11 | 0 | 12 | 8 | 8 | 2 | 1 | 1 | 3 |
13,256 | explosion/spaCy | explosion_spaCy/spacy/lang/ti/__init__.py | spacy.lang.ti.Tigrinya | from ...language import BaseDefaults, Language
class Tigrinya(Language):
lang = 'ti'
Defaults = TigrinyaDefaults |
class Tigrinya(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,257 | explosion/spaCy | explosion_spaCy/spacy/lang/ti/__init__.py | spacy.lang.ti.TigrinyaDefaults | from ...language import BaseDefaults, Language
from .punctuation import TOKENIZER_SUFFIXES
from .stop_words import STOP_WORDS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from ...attrs import LANG
from ...util import update_exc
from ..tokenizer_exceptions import BASE_EXCEPTIONS
from .lex_attrs import LEX_ATTR... |
class TigrinyaDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 6 | 7 | 0 | 8 | 6 | 7 | 0 | 1 | 0 | 0 |
13,258 | explosion/spaCy | explosion_spaCy/spacy/lang/tl/__init__.py | spacy.lang.tl.Tagalog | from ...language import BaseDefaults, Language
class Tagalog(Language):
lang = 'tl'
Defaults = TagalogDefaults |
class Tagalog(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,259 | explosion/spaCy | explosion_spaCy/spacy/lang/tl/__init__.py | spacy.lang.tl.TagalogDefaults | from .lex_attrs import LEX_ATTRS
from ...language import BaseDefaults, Language
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .stop_words import STOP_WORDS
class TagalogDefaults(BaseDefaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS |
class TagalogDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 1 | 0 | 0 |
13,260 | explosion/spaCy | explosion_spaCy/spacy/lang/tn/__init__.py | spacy.lang.tn.Setswana | from ...language import BaseDefaults, Language
class Setswana(Language):
lang = 'tn'
Defaults = SetswanaDefaults |
class Setswana(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,261 | explosion/spaCy | explosion_spaCy/spacy/lang/tn/__init__.py | spacy.lang.tn.SetswanaDefaults | from .lex_attrs import LEX_ATTRS
from .stop_words import STOP_WORDS
from ...language import BaseDefaults, Language
from .punctuation import TOKENIZER_INFIXES
class SetswanaDefaults(BaseDefaults):
infixes = TOKENIZER_INFIXES
stop_words = STOP_WORDS
lex_attr_getters = LEX_ATTRS |
class SetswanaDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 1 | 0 | 0 |
13,262 | explosion/spaCy | explosion_spaCy/spacy/lang/tr/__init__.py | spacy.lang.tr.Turkish | from ...language import BaseDefaults, Language
class Turkish(Language):
lang = 'tr'
Defaults = TurkishDefaults |
class Turkish(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,263 | explosion/spaCy | explosion_spaCy/spacy/lang/tr/__init__.py | spacy.lang.tr.TurkishDefaults | from .stop_words import STOP_WORDS
from ...language import BaseDefaults, Language
from .tokenizer_exceptions import TOKEN_MATCH, TOKENIZER_EXCEPTIONS
from .syntax_iterators import SYNTAX_ITERATORS
from .lex_attrs import LEX_ATTRS
class TurkishDefaults(BaseDefaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
... |
class TurkishDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
13,264 | explosion/spaCy | explosion_spaCy/spacy/lang/tt/__init__.py | spacy.lang.tt.Tatar | from ...language import BaseDefaults, Language
class Tatar(Language):
lang = 'tt'
Defaults = TatarDefaults |
class Tatar(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,265 | explosion/spaCy | explosion_spaCy/spacy/lang/tt/__init__.py | spacy.lang.tt.TatarDefaults | from .stop_words import STOP_WORDS
from ...language import BaseDefaults, Language
from .punctuation import TOKENIZER_INFIXES
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .lex_attrs import LEX_ATTRS
class TatarDefaults(BaseDefaults):
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
infixes = TOKENIZER... |
class TatarDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 1 | 0 | 0 |
13,266 | explosion/spaCy | explosion_spaCy/spacy/lang/uk/__init__.py | spacy.lang.uk.Ukrainian | from ...language import BaseDefaults, Language
class Ukrainian(Language):
lang = 'uk'
Defaults = UkrainianDefaults |
class Ukrainian(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,267 | explosion/spaCy | explosion_spaCy/spacy/lang/uk/__init__.py | spacy.lang.uk.UkrainianDefaults | from .stop_words import STOP_WORDS
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from ..punctuation import COMBINING_DIACRITICS_TOKENIZER_INFIXES, COMBINING_DIACRITICS_TOKENIZER_SUFFIXES
from ...language import BaseDefaults, Language
from .lex_attrs import LEX_ATTRS
class UkrainianDefaults(BaseDefaults):
... |
class UkrainianDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
13,268 | explosion/spaCy | explosion_spaCy/spacy/lang/uk/lemmatizer.py | spacy.lang.uk.lemmatizer.UkrainianLemmatizer | from thinc.api import Model
from ...vocab import Vocab
from ..ru.lemmatizer import RussianLemmatizer
from ...pipeline.lemmatizer import lemmatizer_score
from typing import Callable, Optional
class UkrainianLemmatizer(RussianLemmatizer):
def __init__(self, vocab: Vocab, model: Optional[Model], name: str='lemmatize... |
class UkrainianLemmatizer(RussianLemmatizer):
def __init__(self, vocab: Vocab, model: Optional[Model], name: str='lemmatizer', *, mode: str='pymorphy3', overwrite: bool=False, scorer: Optional[Callable]=lemmatizer_score) -> None:
pass | 2 | 0 | 35 | 0 | 35 | 0 | 7 | 0 | 1 | 4 | 0 | 0 | 1 | 1 | 1 | 8 | 36 | 0 | 36 | 14 | 23 | 0 | 16 | 5 | 12 | 7 | 2 | 2 | 7 |
13,269 | explosion/spaCy | explosion_spaCy/spacy/lang/ur/__init__.py | spacy.lang.ur.Urdu | from ...language import BaseDefaults, Language
class Urdu(Language):
lang = 'ur'
Defaults = UrduDefaults |
class Urdu(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,270 | explosion/spaCy | explosion_spaCy/spacy/lang/ur/__init__.py | spacy.lang.ur.UrduDefaults | from ...language import BaseDefaults, Language
from .punctuation import TOKENIZER_SUFFIXES
from .stop_words import STOP_WORDS
from .lex_attrs import LEX_ATTRS
class UrduDefaults(BaseDefaults):
suffixes = TOKENIZER_SUFFIXES
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS
writing_system = {'directio... |
class UrduDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 1 | 0 | 0 |
13,271 | explosion/spaCy | explosion_spaCy/spacy/lang/vi/__init__.py | spacy.lang.vi.Vietnamese | from ...language import BaseDefaults, Language
class Vietnamese(Language):
lang = 'vi'
Defaults = VietnameseDefaults |
class Vietnamese(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,272 | explosion/spaCy | explosion_spaCy/spacy/lang/vi/__init__.py | spacy.lang.vi.VietnameseDefaults | from .stop_words import STOP_WORDS
from .lex_attrs import LEX_ATTRS
from ...util import DummyTokenizer, load_config_from_str, registry
from ...language import BaseDefaults, Language
class VietnameseDefaults(BaseDefaults):
config = load_config_from_str(DEFAULT_CONFIG)
lex_attr_getters = LEX_ATTRS
stop_words... |
class VietnameseDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 1 | 0 | 0 |
13,273 | explosion/spaCy | explosion_spaCy/spacy/lang/vi/__init__.py | spacy.lang.vi.VietnameseTokenizer | import string
from ...util import DummyTokenizer, load_config_from_str, registry
import re
from typing import Any, Dict, Union
from ... import util
from ...tokens import Doc
from pathlib import Path
from ...vocab import Vocab
import srsly
class VietnameseTokenizer(DummyTokenizer):
def __init__(self, vocab: Vocab,... |
class VietnameseTokenizer(DummyTokenizer):
def __init__(self, vocab: Vocab, use_pyvi: bool=False):
pass
def __reduce__(self):
pass
def __call__(self, text: str) -> Doc:
pass
def pyvi_sylabelize_with_ws(self, text):
'''Modified from pyvi to preserve whitespace and ski... | 12 | 2 | 10 | 0 | 9 | 0 | 2 | 0.06 | 1 | 8 | 0 | 0 | 11 | 3 | 11 | 17 | 122 | 14 | 102 | 38 | 89 | 6 | 77 | 38 | 64 | 8 | 1 | 2 | 21 |
13,274 | explosion/spaCy | explosion_spaCy/spacy/lang/xx/__init__.py | spacy.lang.xx.MultiLanguage | from ...language import Language
class MultiLanguage(Language):
"""Language class to be used for models that support multiple languages.
This module allows models to specify their language ID as 'xx'.
"""
lang = 'xx' |
class MultiLanguage(Language):
'''Language class to be used for models that support multiple languages.
This module allows models to specify their language ID as 'xx'.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 6 | 1 | 2 | 2 | 1 | 3 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
13,275 | explosion/spaCy | explosion_spaCy/spacy/lang/yo/__init__.py | spacy.lang.yo.Yoruba | from ...language import BaseDefaults, Language
class Yoruba(Language):
lang = 'yo'
Defaults = YorubaDefaults |
class Yoruba(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,276 | explosion/spaCy | explosion_spaCy/spacy/lang/yo/__init__.py | spacy.lang.yo.YorubaDefaults | from ...language import BaseDefaults, Language
from .stop_words import STOP_WORDS
from .lex_attrs import LEX_ATTRS
class YorubaDefaults(BaseDefaults):
lex_attr_getters = LEX_ATTRS
stop_words = STOP_WORDS |
class YorubaDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,277 | explosion/spaCy | explosion_spaCy/spacy/lang/zh/__init__.py | spacy.lang.zh.Chinese | from ...language import BaseDefaults, Language
class Chinese(Language):
lang = 'zh'
Defaults = ChineseDefaults |
class Chinese(Language):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
13,278 | explosion/spaCy | explosion_spaCy/spacy/lang/zh/__init__.py | spacy.lang.zh.ChineseDefaults | from .lex_attrs import LEX_ATTRS
from ...util import DummyTokenizer, load_config_from_str, registry
from ...language import BaseDefaults, Language
from .stop_words import STOP_WORDS
class ChineseDefaults(BaseDefaults):
config = load_config_from_str(DEFAULT_CONFIG)
lex_attr_getters = LEX_ATTRS
stop_words = ... |
class ChineseDefaults(BaseDefaults):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 1 | 0 | 0 |
13,279 | explosion/spaCy | explosion_spaCy/spacy/lang/zh/__init__.py | spacy.lang.zh.ChineseTokenizer | import warnings
from pathlib import Path
from ...tokens import Doc
import tempfile
import srsly
from ...training import Example, validate_examples
from typing import Any, Callable, Dict, Iterable, List, Optional
from ... import util
from ...vocab import Vocab
from ...language import BaseDefaults, Language
from ...util ... |
class ChineseTokenizer(DummyTokenizer):
def __init__(self, vocab: Vocab, segmenter: Segmenter=Segmenter.char):
pass
def initialize(self, get_examples: Optional[Callable[[], Iterable[Example]]]=None, *, nlp: Optional[Language]=None, pkuseg_model: Optional[str]=None, pkuseg_user_dict: Optional[str]='de... | 19 | 0 | 15 | 1 | 14 | 0 | 2 | 0.03 | 1 | 14 | 5 | 0 | 11 | 4 | 11 | 17 | 227 | 25 | 200 | 58 | 170 | 5 | 138 | 47 | 115 | 5 | 1 | 3 | 44 |
13,280 | explosion/spaCy | explosion_spaCy/spacy/lang/zh/__init__.py | spacy.lang.zh.Segmenter | from enum import Enum
class Segmenter(str, Enum):
char = 'char'
jieba = 'jieba'
pkuseg = 'pkuseg'
@classmethod
def values(cls):
return list(cls.__members__.keys()) |
class Segmenter(str, Enum):
@classmethod
def values(cls):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 1 | 116 | 8 | 1 | 7 | 6 | 4 | 0 | 6 | 5 | 4 | 1 | 4 | 0 | 1 |
13,281 | explosion/spaCy | explosion_spaCy/spacy/language.py | spacy.language.BaseDefaults | from .lang.tokenizer_exceptions import BASE_EXCEPTIONS, URL_MATCH
from thinc.api import Config, CupyOps, Optimizer, get_current_ops
from .util import _DEFAULT_EMPTY_PIPES, CONFIG_SECTION_ORDER, SimpleFrozenDict, SimpleFrozenList, _pipe, combine_score_weights, raise_error, registry, warn_if_jupyter_cupy
from .lang.punct... |
class BaseDefaults:
'''Language data defaults, available via Language.Defaults. Can be
overwritten by language subclasses by defining their own subclasses of
Language.Defaults.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 78 | 0 | 0 | 0 | 0 | 17 | 1 | 12 | 12 | 11 | 4 | 12 | 12 | 11 | 0 | 0 | 0 | 0 |
13,282 | explosion/spaCy | explosion_spaCy/spacy/language.py | spacy.language.DisabledPipes | from typing import Any, Callable, Dict, Iterable, Iterator, List, NoReturn, Optional, Pattern, Sequence, Set, Tuple, TypeVar, Union, cast, overload
from .errors import Errors, Warnings
class DisabledPipes(list):
"""Manager for temporary pipeline disabling."""
def __init__(self, nlp: Language, names: List[str]... |
class DisabledPipes(list):
'''Manager for temporary pipeline disabling.'''
def __init__(self, nlp: Language, names: List[str]) -> None:
pass
def __enter__(self):
pass
def __exit__(self, *args):
pass
def restore(self) -> None:
'''Restore the pipeline to its state ... | 5 | 2 | 5 | 0 | 4 | 0 | 2 | 0.11 | 1 | 4 | 2 | 0 | 4 | 2 | 4 | 37 | 24 | 4 | 18 | 9 | 13 | 2 | 18 | 9 | 13 | 3 | 2 | 2 | 7 |
13,283 | explosion/spaCy | explosion_spaCy/spacy/language.py | spacy.language.FactoryMeta | from typing import Any, Callable, Dict, Iterable, Iterator, List, NoReturn, Optional, Pattern, Sequence, Set, Tuple, TypeVar, Union, cast, overload
from dataclasses import dataclass
@dataclass
class FactoryMeta:
"""Dataclass containing information about a component and its defaults
provided by the @Language.co... | @dataclass
class FactoryMeta:
'''Dataclass containing information about a component and its defaults
provided by the @Language.component or @Language.factory decorator. It's
created whenever a component is defined and stored on the Language class for
each component instance and factory instance.
'''... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 1 | 8 | 7 | 7 | 7 | 8 | 7 | 7 | 0 | 0 | 0 | 0 |
13,284 | explosion/spaCy | explosion_spaCy/spacy/language.py | spacy.language.Language | from .schemas import ConfigSchema, ConfigSchemaInit, ConfigSchemaNlp, ConfigSchemaPretrain, validate_init_settings
from .scorer import Scorer
from .pipe_analysis import analyze_pipes, print_pipe_analysis, validate_attrs
from .tokens.underscore import Underscore
from .vocab import Vocab, create_vocab
from typing import ... |
class Language:
'''A text-processing pipeline. Usually you'll load this once per process,
and pass the instance around your application.
Defaults (class): Settings, data and factory methods for creating the `nlp`
object and processing pipeline.
lang (str): Two-letter ISO 639-1 or three-letter I... | 99 | 56 | 30 | 2 | 19 | 9 | 4 | 0.48 | 0 | 42 | 15 | 79 | 56 | 13 | 64 | 64 | 2,173 | 194 | 1,367 | 490 | 1,078 | 653 | 893 | 272 | 819 | 34 | 0 | 6 | 321 |
13,285 | explosion/spaCy | explosion_spaCy/spacy/language.py | spacy.language._Sender | import itertools
import multiprocessing as mp
from itertools import chain, cycle
from typing import Any, Callable, Dict, Iterable, Iterator, List, NoReturn, Optional, Pattern, Sequence, Set, Tuple, TypeVar, Union, cast, overload
class _Sender:
"""Util for sending data to multiprocessing workers in Language.pipe"""... |
class _Sender:
'''Util for sending data to multiprocessing workers in Language.pipe'''
def __init__(self, data: Iterable[Any], queues: List[mp.Queue], chunk_size: int) -> None:
pass
def send(self) -> None:
'''Send chunk_size items from self.data to channels.'''
pass
def step(... | 4 | 3 | 7 | 0 | 6 | 2 | 2 | 0.33 | 0 | 5 | 0 | 0 | 3 | 4 | 3 | 3 | 27 | 3 | 18 | 11 | 12 | 6 | 14 | 9 | 10 | 2 | 0 | 1 | 5 |
13,286 | explosion/spaCy | explosion_spaCy/spacy/language.py | spacy.language._WorkDoneSentinel | class _WorkDoneSentinel:
pass | class _WorkDoneSentinel:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
13,287 | explosion/spaCy | explosion_spaCy/spacy/lookups.py | spacy.lookups.Lookups | from typing import Any, Dict, List, Optional, Union
from pathlib import Path
from .errors import Errors
import srsly
from .util import SimpleFrozenDict, ensure_path, load_language_data, registry
class Lookups:
"""Container for large lookup tables and dictionaries, e.g. lemmatization
data or tokenizer exception... |
class Lookups:
'''Container for large lookup tables and dictionaries, e.g. lemmatization
data or tokenizer exception lists. Lookups are available via vocab.lookups,
so they can be accessed before the pipeline components are applied (e.g.
in the tokenizer and lemmatizer), as well as within the pipeline ... | 15 | 14 | 10 | 2 | 4 | 4 | 2 | 1.14 | 0 | 12 | 2 | 0 | 13 | 1 | 13 | 13 | 153 | 33 | 56 | 27 | 37 | 64 | 51 | 20 | 37 | 3 | 0 | 2 | 20 |
13,288 | explosion/spaCy | explosion_spaCy/spacy/lookups.py | spacy.lookups.Table | from typing import Any, Dict, List, Optional, Union
from .strings import get_string_id
import srsly
from preshed.bloom import BloomFilter
from collections import OrderedDict
class Table(OrderedDict):
"""A table in the lookups. Subclass of builtin dict that implements a
slightly more consistent and unified API.... |
class Table(OrderedDict):
'''A table in the lookups. Subclass of builtin dict that implements a
slightly more consistent and unified API.
Includes a Bloom filter to speed up missed lookups.
'''
@classmethod
def from_dict(cls, data: dict, name: Optional[str]=None) -> 'Table':
'''Initiali... | 11 | 10 | 11 | 1 | 5 | 5 | 1 | 1.11 | 1 | 5 | 0 | 0 | 8 | 3 | 9 | 59 | 116 | 23 | 46 | 19 | 35 | 51 | 41 | 18 | 31 | 3 | 3 | 1 | 12 |
13,289 | explosion/spaCy | explosion_spaCy/spacy/ml/models/multi_task.py | spacy.ml.models.multi_task._RandomWords | import numpy
from typing import TYPE_CHECKING, Any, Callable, Iterable, List, Optional, Tuple, cast
class _RandomWords:
def __init__(self, vocab: 'Vocab') -> None:
self.words = [lex.text for lex in vocab if lex.prob != 0.0]
self.words = self.words[:10000]
probs = [lex.prob for lex in vocab... |
class _RandomWords:
def __init__(self, vocab: 'Vocab') -> None:
pass
def next(self) -> str:
pass | 3 | 0 | 11 | 1 | 8 | 2 | 2 | 0.18 | 0 | 2 | 0 | 0 | 2 | 3 | 2 | 2 | 23 | 3 | 17 | 8 | 14 | 3 | 15 | 8 | 12 | 2 | 0 | 1 | 3 |
13,290 | explosion/spaCy | explosion_spaCy/spacy/pipeline/Lemmatizer.py | spacy.pipeline.Lemmatizer.Lemmatizer | from ..training import Example
from ..util import SimpleFrozenList, logger, registry
from .pipe import Pipe
from ..language import Language
from ..lookups import Lookups, load_lookups
import warnings
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
from .. import util
from thinc.api import... |
class Lemmatizer(Pipe):
'''
The Lemmatizer supports simple part-of-speech-sensitive suffix rules and
lookup tables.
DOCS: https://spacy.io/api/lemmatizer
'''
@classmethod
def get_lookups_config(cls, mode: str) -> Tuple[List[str], List[str]]:
'''Returns the lookups configuration sett... | 16 | 13 | 20 | 2 | 13 | 6 | 3 | 0.48 | 1 | 14 | 5 | 0 | 12 | 10 | 13 | 13 | 285 | 35 | 170 | 76 | 133 | 82 | 127 | 52 | 113 | 15 | 1 | 3 | 41 |
13,291 | explosion/spaCy | explosion_spaCy/spacy/pipeline/_edit_tree_internals/schemas.py | spacy.pipeline._edit_tree_internals.schemas.EditTreeSchema | from typing import Any, Dict, List, Union
class EditTreeSchema(BaseModel):
__root__: Union[MatchNodeSchema, SubstNodeSchema] |
class EditTreeSchema(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
13,292 | explosion/spaCy | explosion_spaCy/spacy/pipeline/attributeruler.py | spacy.pipeline.attributeruler.AttributeRuler | from ..tokens import Doc, Span
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
from ..errors import Errors
from ..matcher import Matcher
from ..util import SimpleFrozenList, registry
from .. import util
from .pipe import Pipe
from ..language import Language
from pathlib import Path
import... |
class AttributeRuler(Pipe):
'''Set token-level attributes for tokens matched by Matcher patterns.
Additionally supports importing patterns from tag maps and morph rules.
DOCS: https://spacy.io/api/attributeruler
'''
def __init__(self, vocab: Vocab, name: str='attribute_ruler', *, validate: bool=Fa... | 19 | 15 | 16 | 1 | 9 | 5 | 2 | 0.63 | 1 | 12 | 3 | 0 | 15 | 8 | 15 | 15 | 282 | 41 | 154 | 82 | 108 | 97 | 107 | 53 | 89 | 5 | 1 | 3 | 31 |
13,293 | explosion/spaCy | explosion_spaCy/spacy/pipeline/edit_tree_lemmatizer.py | spacy.pipeline.edit_tree_lemmatizer.EditTreeLemmatizer | from ..vocab import Vocab
from ._edit_tree_internals.edit_trees import EditTrees
from collections import Counter
from ..training import Example, validate_examples, validate_get_examples
from .lemmatizer import lemmatizer_score
from thinc.types import Floats2d, Ints2d
from ..language import Language
import srsly
from ty... |
class EditTreeLemmatizer(TrainablePipe):
'''
Lemmatizer that lemmatizes each word using a predicted edit tree.
'''
def __init__(self, vocab: Vocab, model: Model, name: str='trainable_lemmatizer', *, backoff: Optional[str]='orth', min_tree_freq: int=3, overwrite: bool=False, top_k: int=1, scorer: Optio... | 23 | 4 | 17 | 2 | 14 | 2 | 3 | 0.13 | 1 | 17 | 2 | 0 | 18 | 12 | 18 | 18 | 345 | 50 | 261 | 121 | 219 | 34 | 205 | 98 | 185 | 8 | 1 | 5 | 66 |
13,294 | explosion/spaCy | explosion_spaCy/spacy/pipeline/entity_linker.py | spacy.pipeline.entity_linker.EntityLinker | from ..util import SimpleFrozenList, registry
from .pipe import deserialize_config
from ..vocab import Vocab
from ..language import Language
from pathlib import Path
from .. import util
from ..errors import Errors
from ..training import Example, validate_examples, validate_get_examples
from itertools import islice
from... |
class EntityLinker(TrainablePipe):
'''Pipeline component for named entity linking.
DOCS: https://spacy.io/api/entitylinker
'''
def __init__(self, vocab: Vocab, model: Model, name: str='entity_linker', *, labels_discard: Iterable[str], n_sents: int, incl_prior: bool, incl_context: bool, entity_vector_l... | 20 | 13 | 28 | 3 | 19 | 6 | 4 | 0.34 | 1 | 20 | 3 | 0 | 16 | 16 | 16 | 16 | 521 | 69 | 340 | 146 | 282 | 116 | 250 | 106 | 230 | 18 | 1 | 7 | 71 |
13,295 | explosion/spaCy | explosion_spaCy/spacy/pipeline/entityruler.py | spacy.pipeline.entityruler.EntityRuler | from ..training import Example
from pathlib import Path
from collections import defaultdict
from ..matcher import Matcher, PhraseMatcher
from ..tokens import Doc, Span
import srsly
from ..util import SimpleFrozenList, ensure_path, from_disk, registry, to_disk
import warnings
from ..matcher.levenshtein import levenshtei... |
class EntityRuler(Pipe):
'''The EntityRuler lets you add spans to the `Doc.ents` using token-based
rules or exact phrase matches. It can be combined with the statistical
`EntityRecognizer` to boost accuracy, or used on its own to implement a
purely rule-based entity recognition system. After initializa... | 25 | 20 | 22 | 2 | 15 | 6 | 3 | 0.39 | 1 | 20 | 4 | 0 | 20 | 13 | 20 | 20 | 471 | 51 | 311 | 113 | 263 | 122 | 210 | 85 | 189 | 13 | 1 | 3 | 61 |
13,296 | explosion/spaCy | explosion_spaCy/spacy/pipeline/functions.py | spacy.pipeline.functions.DocCleaner | from ..tokens import Doc
from .. import util
import warnings
import srsly
from typing import Any, Dict
from ..errors import Warnings
class DocCleaner:
def __init__(self, attrs: Dict[str, Any], *, silent: bool=True):
self.cfg: Dict[str, Any] = {'attrs': dict(attrs), 'silent': silent}
def __call__(self... |
class DocCleaner:
def __init__(self, attrs: Dict[str, Any], *, silent: bool=True):
pass
def __call__(self, doc: Doc) -> Doc:
pass
def to_bytes(self, **kwargs):
pass
def from_bytes(self, data, **kwargs):
pass
def to_disk(self, path, **kwargs):
pass
d... | 7 | 0 | 8 | 0 | 8 | 0 | 2 | 0 | 0 | 5 | 1 | 0 | 6 | 1 | 6 | 6 | 52 | 5 | 47 | 19 | 40 | 0 | 37 | 19 | 30 | 8 | 0 | 4 | 13 |
13,297 | explosion/spaCy | explosion_spaCy/spacy/pipeline/functions.py | spacy.pipeline.functions.TokenSplitter | import srsly
from typing import Any, Dict
from ..tokens import Doc
from .. import util
class TokenSplitter:
def __init__(self, min_length: int=0, split_length: int=0):
self.min_length = min_length
self.split_length = split_length
def __call__(self, doc: Doc) -> Doc:
if self.min_length... |
class TokenSplitter:
def __init__(self, min_length: int=0, split_length: int=0):
pass
def __call__(self, doc: Doc) -> Doc:
pass
def _get_config(self) -> Dict[str, Any]:
pass
def _set_config(self, config: Dict[str, Any]={}) -> None:
pass
def to_bytes(self, **kwar... | 9 | 0 | 6 | 0 | 6 | 0 | 2 | 0.04 | 0 | 4 | 0 | 0 | 8 | 2 | 8 | 8 | 55 | 7 | 48 | 21 | 39 | 2 | 37 | 20 | 28 | 5 | 0 | 5 | 12 |
13,298 | explosion/spaCy | explosion_spaCy/spacy/pipeline/legacy/entity_linker.py | spacy.pipeline.legacy.entity_linker.EntityLinker_v1 | import warnings
from ... import util
from ...util import SimpleFrozenList
from itertools import islice
from pathlib import Path
from ..pipe import deserialize_config
from ...training import Example, validate_examples, validate_get_examples
from ...language import Language
from ..trainable_pipe import TrainablePipe
impo... |
class EntityLinker_v1(TrainablePipe):
'''Pipeline component for named entity linking.
DOCS: https://spacy.io/api/entitylinker
'''
def __init__(self, vocab: Vocab, model: Model, name: str='entity_linker', *, labels_discard: Iterable[str], n_sents: int, incl_prior: bool, incl_context: bool, entity_vecto... | 17 | 11 | 24 | 1 | 17 | 6 | 4 | 0.36 | 1 | 19 | 4 | 0 | 14 | 12 | 14 | 14 | 388 | 38 | 258 | 124 | 210 | 93 | 207 | 91 | 190 | 15 | 1 | 7 | 56 |
13,299 | explosion/spaCy | explosion_spaCy/spacy/pipeline/lemmatizer.py | spacy.pipeline.lemmatizer.Lemmatizer | import warnings
from pathlib import Path
from ..util import SimpleFrozenList, logger, registry
from thinc.api import Model
from ..tokens import Doc, Token
from ..training import Example
from ..vocab import Vocab
from ..errors import Errors, Warnings
from ..lookups import Lookups, load_lookups
from .. import util
from .... |
class Lemmatizer(Pipe):
'''
The Lemmatizer supports simple part-of-speech-sensitive suffix rules and
lookup tables.
DOCS: https://spacy.io/api/lemmatizer
'''
@classmethod
def get_lookups_config(cls, mode: str) -> Tuple[List[str], List[str]]:
'''Returns the lookups configuration sett... | 16 | 13 | 20 | 2 | 13 | 6 | 3 | 0.48 | 1 | 14 | 5 | 0 | 12 | 10 | 13 | 13 | 285 | 35 | 170 | 76 | 133 | 82 | 127 | 52 | 113 | 15 | 1 | 3 | 41 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.