Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update __all__ fields #13063

Merged
merged 4 commits into from Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions spacy/kb/__init__.py
@@ -1,3 +1,11 @@
from .candidate import Candidate, get_candidates, get_candidates_batch
from .kb import KnowledgeBase
from .kb_in_memory import InMemoryLookupKB

__all__ = [
"Candidate",
"KnowledgeBase",
"InMemoryLookupKB",
"get_candidates",
"get_candidates_batch",
]
2 changes: 1 addition & 1 deletion spacy/matcher/__init__.py
Expand Up @@ -3,4 +3,4 @@
from .matcher import Matcher
from .phrasematcher import PhraseMatcher

__all__ = ["Matcher", "PhraseMatcher", "DependencyMatcher", "levenshtein"]
__all__ = ["DependencyMatcher", "Matcher", "PhraseMatcher", "levenshtein"]
1 change: 1 addition & 0 deletions spacy/pipeline/__init__.py
Expand Up @@ -22,6 +22,7 @@
__all__ = [
"AttributeRuler",
"DependencyParser",
"EditTreeLemmatizer",
"EntityLinker",
"EntityRecognizer",
"EntityRuler",
Expand Down
2 changes: 1 addition & 1 deletion spacy/tokens/__init__.py
Expand Up @@ -5,4 +5,4 @@
from .span_group import SpanGroup
from .token import Token

__all__ = ["Doc", "Token", "Span", "SpanGroup", "DocBin", "MorphAnalysis"]
__all__ = ["Doc", "DocBin", "MorphAnalysis", "Span", "SpanGroup", "Token"]
25 changes: 25 additions & 0 deletions spacy/training/__init__.py
Expand Up @@ -16,3 +16,28 @@
tags_to_entities,
)
from .loggers import console_logger # noqa: F401

__all__ = [
"Alignment",
"Corpus",
"Example",
"JsonlCorpus",
"PlainTextCorpus",
"biluo_tags_to_offsets",
"biluo_tags_to_spans",
"biluo_to_iob",
"create_copy_from_base_model",
"docs_to_json",
"dont_augment",
"iob_to_biluo",
"minibatch_by_padded_size",
"minibatch_by_words",
"offsets_to_biluo_tags",
"orth_variants_augmenter",
"read_json_file",
"remove_bilu_prefix",
"split_bilu_label",
"tags_to_entities",
"validate_get_examples",
"validate_examples",
]