Skip to content

Commit

Permalink
setup: use explicit re-exports (#151)
Browse files Browse the repository at this point in the history
* setup: use explicit re-exports

* fix tests
  • Loading branch information
adbar authored Oct 9, 2024
1 parent ebabe83 commit 10cc7fb
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
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",
]

0 comments on commit 10cc7fb

Please sign in to comment.