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

setup: use explicit re-exports #151

Merged
merged 2 commits into from
Oct 9, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] # '3.14-dev'
env: [{ MINIMAL: "true" }, { MINIMAL: "false" }]
include:
# common versions on MacOS
Expand Down
23 changes: 23 additions & 0 deletions simplemma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,26 @@
TokenSampler,
)
from .tokenizer import RegexTokenizer, Tokenizer, simple_tokenizer

__all__ = [
"__title__",
"__author__",
"__email__",
"__license__",
"__version__",
"LanguageDetector",
"in_target_language",
"langdetect",
"Lemmatizer",
"is_known",
"lemma_iterator",
"lemmatize",
"text_lemmatizer",
"BaseTokenSampler",
"MostCommonTokenSampler",
"RelaxedMostCommonTokenSampler",
"TokenSampler",
"RegexTokenizer",
"Tokenizer",
"simple_tokenizer",
]
17 changes: 17 additions & 0 deletions simplemma/strategies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,20 @@
from .lemmatization_strategy import LemmatizationStrategy
from .prefix_decomposition import PrefixDecompositionStrategy
from .rules import RulesStrategy

__all__ = [
"AffixDecompositionStrategy",
"DefaultStrategy",
"DefaultDictionaryFactory",
"DictionaryFactory",
"TrieDictionaryFactory",
"DictionaryLookupStrategy",
"LemmatizationFallbackStrategy",
"RaiseErrorFallbackStrategy",
"ToLowercaseFallbackStrategy",
"GreedyDictionaryLookupStrategy",
"HyphenRemovalStrategy",
"LemmatizationStrategy",
"PrefixDecompositionStrategy",
"RulesStrategy",
]
2 changes: 2 additions & 0 deletions simplemma/strategies/dictionaries/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

from .dictionary_factory import DefaultDictionaryFactory, DictionaryFactory
from .trie_directory_factory import TrieDictionaryFactory

__all__ = ["DefaultDictionaryFactory", "DictionaryFactory", "TrieDictionaryFactory"]
6 changes: 6 additions & 0 deletions simplemma/strategies/fallback/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
from .lemmatization_fallback_strategy import LemmatizationFallbackStrategy
from .raise_error import RaiseErrorFallbackStrategy
from .to_lowercase import ToLowercaseFallbackStrategy

__all__ = [
"LemmatizationFallbackStrategy",
"RaiseErrorFallbackStrategy",
"ToLowercaseFallbackStrategy",
]
Loading