Skip to content

Commit 13aafe0

Browse files
authored
Merge pull request #186 from bact/dev
NER fixes, code cleaning, and type hinting
2 parents e19ec28 + 9072664 commit 13aafe0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1121
-773
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ install:
1818

1919
os:
2020
- linux
21+
2122
# command to run tests, e.g. python setup.py test
2223
script:
2324
coverage run --source=pythainlp setup.py test
25+
2426
after_success:
2527
coveralls
2628

Makefile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ help:
2828

2929
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
3030

31-
3231
clean-build: ## remove build artifacts
3332
rm -fr build/
3433
rm -fr dist/
@@ -51,19 +50,16 @@ lint: ## check style with flake8
5150
flake8 pythainlp tests
5251

5352
test: ## run tests quickly with the default Python
54-
55-
python setup.py test
53+
python setup.py test
5654

5755
test-all: ## run tests on every Python version with tox
5856
tox
5957

6058
coverage: ## check code coverage quickly with the default Python
61-
62-
coverage run --source pythainlp setup.py test
63-
64-
coverage report -m
65-
coverage html
66-
$(BROWSER) htmlcov/index.html
59+
coverage run --source pythainlp setup.py test
60+
coverage report -m
61+
coverage html
62+
$(BROWSER) htmlcov/index.html
6763

6864
release: clean ## package and upload a release
6965
python setup.py sdist upload

conda.recipe/meta-old.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

conda.recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = "1.7.2" %}
1+
{% set version = "2.0.1" %}
22

33
package:
44
name: pythainlp

docs/api/spell.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,4 @@ Modules
88
-------
99

1010
.. autofunction:: spell
11-
.. autofunction:: pythainlp.spell.pn.spell
12-
.. autofunction:: pythainlp.spell.pn.prob
13-
.. autofunction:: pythainlp.spell.pn.correct
14-
.. autofunction:: pythainlp.spell.pn.known
15-
.. autofunction:: pythainlp.spell.pn.dictionary
11+
.. autofunction:: correct

docs/api/util.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Modules
1414
.. autofunction:: digit_to_text
1515
.. autofunction:: eng_to_thai
1616
.. autofunction:: find_keyword
17-
.. autofunction:: is_thai
18-
.. autofunction:: is_thaichar
19-
.. autofunction:: is_thaiword
17+
.. autofunction:: countthai
18+
.. autofunction:: isthai
19+
.. autofunction:: isthaichar
2020
.. autofunction:: normalize
2121
.. autofunction:: now_reign_year
2222
.. autofunction:: num_to_thaiword
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)