-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* maintenance: code linting * further linting
- Loading branch information
Showing
33 changed files
with
62 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
"""Simplemma strategies module""" | ||
|
||
from .dictionaries import DictionaryFactory, DefaultDictionaryFactory | ||
|
||
from .lemmatization_strategy import LemmatizationStrategy | ||
from .dictionary_lookup import DictionaryLookupStrategy | ||
from .hyphen_removal import HyphenRemovalStrategy | ||
from .rules import RulesStrategy | ||
from .prefix_decomposition import PrefixDecompositionStrategy | ||
from .greedy_dictionary_lookup import GreedyDictionaryLookupStrategy | ||
from .affix_decomposition import AffixDecompositionStrategy | ||
from .default import DefaultStrategy | ||
|
||
from .dictionaries import DefaultDictionaryFactory, DictionaryFactory | ||
from .dictionary_lookup import DictionaryLookupStrategy | ||
from .fallback.lemmatization_fallback_strategy import LemmatizationFallbackStrategy | ||
from .fallback.to_lowercase import ToLowercaseFallbackStrategy | ||
from .fallback.raise_error import RaiseErrorFallbackStrategy | ||
from .fallback.to_lowercase import ToLowercaseFallbackStrategy | ||
from .greedy_dictionary_lookup import GreedyDictionaryLookupStrategy | ||
from .hyphen_removal import HyphenRemovalStrategy | ||
from .lemmatization_strategy import LemmatizationStrategy | ||
from .prefix_decomposition import PrefixDecompositionStrategy | ||
from .rules import RulesStrategy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import re | ||
|
||
|
||
RUSSIAN_PREFIXES = [ | ||
"гидро", | ||
"за", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""Dictionary-based lemmatization strategy.""" | ||
|
||
from .dictionary_factory import DictionaryFactory, DefaultDictionaryFactory | ||
from .dictionary_factory import DefaultDictionaryFactory, DictionaryFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""Simplemma fallback strategies module""" | ||
|
||
from .lemmatization_fallback_strategy import LemmatizationFallbackStrategy | ||
from .to_lowercase import ToLowercaseFallbackStrategy | ||
from .raise_error import RaiseErrorFallbackStrategy | ||
from .to_lowercase import ToLowercaseFallbackStrategy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
|
||
import re | ||
import sys | ||
|
||
from abc import abstractmethod | ||
from typing import Iterator, List, Pattern | ||
|
||
|
Oops, something went wrong.