-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add poetry and linters * Style * Fix pip version * Fix travis * Add numerical range support * Fix commas
- Loading branch information
1 parent
d6e5f0e
commit c6fd216
Showing
82 changed files
with
423 additions
and
600 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CODE = maru tests | ||
PYTHON = poetry run | ||
|
||
.PHONY: pretty lint test | ||
|
||
pretty: | ||
$(PYTHON) black --target-version py36 --skip-string-normalization $(CODE) | ||
$(PYTHON) isort --apply --recursive $(CODE) | ||
$(PYTHON) unify --in-place --recursive $(CODE) | ||
|
||
lint: | ||
$(PYTHON) black --target-version py36 --check --skip-string-normalization $(CODE) | ||
$(PYTHON) flake8 --jobs 4 --statistics $(CODE) | ||
$(PYTHON) pylint --jobs 4 --rcfile=setup.cfg $(CODE) | ||
$(PYTHON) mypy $(CODE) | ||
|
||
test: | ||
$(PYTHON) pytest -n 8 --boxed tests | ||
|
||
coverage: | ||
$(PYTHON) pytest --cov=maru | ||
$(PYTHON) codecov |
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,21 @@ | ||
from maru.factory import get_analyzer # noqa: F401 | ||
from maru.factory import get_analyzer | ||
from maru.grammeme import ( | ||
Animacy, | ||
Aspect, | ||
Case, | ||
Degree, | ||
Gender, | ||
Mood, | ||
Number, | ||
NumericalForm, | ||
PartOfSpeech, | ||
Person, | ||
Tense, | ||
Variant, | ||
VerbForm, | ||
Voice, | ||
) | ||
from maru.morph import Morph | ||
from maru.tag import Tag | ||
|
||
__version__ = '0.1.1' |
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 @@ | ||
from .analyzer import get_analyzer # noqa: F401 | ||
from .lemmatizer import get_lemmatizer # noqa: F401 | ||
from .tagger import get_tagger # noqa: F401 | ||
from .analyzer import get_analyzer | ||
from .lemmatizer import get_lemmatizer | ||
from .tagger import get_tagger |
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 +1 @@ | ||
from . import extractor # noqa: F401 | ||
from . import extractor |
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,7 +1,7 @@ | ||
from .abstract import IFeatureExtractor # noqa: F401 | ||
from .cache import Cache # noqa: F401 | ||
from .pymorphy import PymorphyExtractor # noqa: F401 | ||
from .pipeline import Pipeline # noqa: F401 | ||
from .stem import StemExtractor # noqa: F401 | ||
from .suffix import SuffixExtractor # noqa: F401 | ||
from .word import WordExtractor # noqa: F401 | ||
from .abstract import IFeatureExtractor | ||
from .cache import Cache | ||
from .pipeline import Pipeline | ||
from .pymorphy import PymorphyExtractor | ||
from .stem import StemExtractor | ||
from .suffix import SuffixExtractor | ||
from .word import WordExtractor |
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
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
Oops, something went wrong.