Skip to content
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: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ install:

os:
- linux

# command to run tests, e.g. python setup.py test
script:
coverage run --source=pythainlp setup.py test

after_success:
coveralls

Expand Down
7 changes: 3 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ We use the famous [gitflow](http://nvie.com/posts/a-successful-git-branching-mod

## Code Guidelines

- Use [PEP8](http://www.python.org/dev/peps/pep-0008/);
- Follows [PEP8](http://www.python.org/dev/peps/pep-0008/), use [black](https://github.com/ambv/black);
- Write tests for your new features (please see "Tests" topic below);
- Always remember that [commented code is dead
code](http://www.codinghorror.com/blog/2008/07/coding-without-comments.html);
- Name identifiers (variables, classes, functions, module names) with meaningful
and pronounceable names (`x` is always wrong);
- When manipulating strings, use [Python's new-style
formatting](http://docs.python.org/library/string.html#format-string-syntax)
(`'{} = {}'.format(a, b)` instead of `'%s = %s' % (a, b)`);
- When manipulating strings, use [f-String](https://www.python.org/dev/peps/pep-0498/)
(use `"{a} = {b}"`, instead of `"{} = {}".format(a, b)` and `"%s = %s' % (a, b)"`);
- All `#TODO` comments should be turned into issues (use our
[GitHub issue system](https://github.com/PyThaiNLP/pythainlp/));
- Run all tests before pushing (just execute `tox`) so you will know if your
Expand Down
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ help:

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


clean-build: ## remove build artifacts
rm -fr build/
rm -fr dist/
Expand All @@ -51,19 +50,16 @@ lint: ## check style with flake8
flake8 pythainlp tests

test: ## run tests quickly with the default Python

python setup.py test
python setup.py test

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

coverage: ## check code coverage quickly with the default Python

coverage run --source pythainlp setup.py test

coverage report -m
coverage html
$(BROWSER) htmlcov/index.html
coverage run --source pythainlp setup.py test
coverage report -m
coverage html
$(BROWSER) htmlcov/index.html

release: clean ## package and upload a release
python setup.py sdist upload
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PyThaiNLP is a Python package for text processing and linguistic analysis, simil

**This is a document for development branch (post 1.7.x). Things will break. For a stable branch document, see [master](https://github.com/PyThaiNLP/pythainlp/tree/master).**

📫 follow us on Facebook [Pythainlp](https://www.facebook.com/pythainlp/)
📫 follow us on Facebook [PyThaiNLP](https://www.facebook.com/pythainlp/)

## Capabilities

Expand All @@ -34,7 +34,7 @@ PyThaiNLP is a Python package for text processing and linguistic analysis, simil
- Thai misspellings detection and spelling correction (```spell```)
- Thai soundex (```lk82```, ```udom83```, ```metasound```)
- Thai WordNet wrapper
- and much more - see [examples](https://github.com/PyThaiNLP/pythainlp/tree/dev/examples).
- and much more - see examples in [PyThaiNLP Get Started notebook](https://github.com/PyThaiNLP/pythainlp/blob/dev/notebooks/pythainlp-get-started.ipynb).

## Installation

Expand Down Expand Up @@ -125,7 +125,7 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนเพื่
- ตรวจคำสะกดผิดในภาษาไทย (```spell```)
- soundex ภาษาไทย (```lk82```, ```udom83```, ```metasound```)
- Thai WordNet wrapper
- และอื่น ๆ [ดูตัวอย่าง](https://github.com/PyThaiNLP/pythainlp/tree/dev/examples)
- และอื่น ๆ ดูตัวอย่างได้ใน [PyThaiNLP Get Started notebook](https://github.com/PyThaiNLP/pythainlp/blob/dev/notebooks/pythainlp-get-started.ipynb)

## ติดตั้ง

Expand Down
49 changes: 0 additions & 49 deletions conda.recipe/meta-old.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "1.7.2" %}
{% set version = "2.0.1" %}

package:
name: pythainlp
Expand Down
6 changes: 1 addition & 5 deletions docs/api/spell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ Modules
-------

.. autofunction:: spell
.. autofunction:: pythainlp.spell.pn.spell
.. autofunction:: pythainlp.spell.pn.prob
.. autofunction:: pythainlp.spell.pn.correct
.. autofunction:: pythainlp.spell.pn.known
.. autofunction:: pythainlp.spell.pn.dictionary
.. autofunction:: correct
6 changes: 3 additions & 3 deletions docs/api/util.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Modules
.. autofunction:: digit_to_text
.. autofunction:: eng_to_thai
.. autofunction:: find_keyword
.. autofunction:: is_thai
.. autofunction:: is_thaichar
.. autofunction:: is_thaiword
.. autofunction:: countthai
.. autofunction:: isthai
.. autofunction:: isthaichar
.. autofunction:: normalize
.. autofunction:: now_reign_year
.. autofunction:: num_to_thaiword
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions docs/whatsnew-1.7.md

This file was deleted.

5 changes: 0 additions & 5 deletions examples/collate.py

This file was deleted.

10 changes: 0 additions & 10 deletions examples/date.py

This file was deleted.

5 changes: 0 additions & 5 deletions examples/etcc.py

This file was deleted.

5 changes: 0 additions & 5 deletions examples/ner.py

This file was deleted.

5 changes: 0 additions & 5 deletions examples/normalize.py

This file was deleted.

16 changes: 0 additions & 16 deletions examples/soundex.py

This file was deleted.

27 changes: 0 additions & 27 deletions examples/spell.py

This file was deleted.

10 changes: 0 additions & 10 deletions examples/tcc.py

This file was deleted.

24 changes: 0 additions & 24 deletions examples/tokenize.py

This file was deleted.

6 changes: 0 additions & 6 deletions examples/transliterate.py

This file was deleted.

2 changes: 1 addition & 1 deletion meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "1.7.2" %}
{% set version = "2.0.1" %}

package:
name: pythainlp
Expand Down
Loading