Skip to content

Commit e28c46e

Browse files
authored
Merge pull request #1 from PyThaiNLP/dev
Merge from PyThaiNLP project
2 parents 9b119ba + aaf027a commit e28c46e

File tree

118 files changed

+5552
-11349
lines changed

Some content is hidden

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

118 files changed

+5552
-11349
lines changed

.circleci/config.yml

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,33 @@
1-
# Python CircleCI 2.0 configuration file
2-
#
3-
# Check https://circleci.com/docs/2.0/language-python/ for more details
4-
#
51
version: 2
62
jobs:
73
build:
84
docker:
9-
# specify the version you desire here
10-
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
115
- image: circleci/python:3.6.1
12-
13-
# Specify service dependencies here if necessary
14-
# CircleCI maintains a library of pre-built images
15-
# documented at https://circleci.com/docs/2.0/circleci-images/
16-
# - image: circleci/postgres:9.4
17-
18-
working_directory: ~/repo
19-
6+
working_directory: ~/pythainlp
207
steps:
218
- checkout
22-
23-
# Download and cache dependencies
249
- restore_cache:
2510
keys:
26-
- v1-dependencies-{{ checksum "requirements.txt" }}
27-
# fallback to using the latest cache if no exact match is found
11+
- v1-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}
2812
- v1-dependencies-
29-
3013
- run:
31-
name: install dependencies
14+
name: Install Dependencies
3215
command: |
3316
python3 -m venv venv
3417
. venv/bin/activate
3518
pip install -r requirements.txt
36-
3719
- save_cache:
3820
paths:
3921
- ./venv
40-
key: v1-dependencies-{{ checksum "requirements.txt" }}
41-
42-
# run tests!
22+
key: v1-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}
4323
- run:
44-
name: run tests
24+
name: Run Static Analysis
4525
command: |
4626
. venv/bin/activate
47-
python manage.py test
48-
49-
- store_artifacts:
50-
path: test-reports
51-
destination: test-reports
27+
pip install flake8
28+
make lint
29+
- run:
30+
name: Run Tests
31+
command: |
32+
. venv/bin/activate
33+
make test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ __pycache__/
99
# Distribution / packaging
1010
.Python
1111
env/
12+
venv/
1213
build/
1314
develop-eggs/
1415
dist/

CONTRIBUTING.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to PyThaiNLP
22

3-
Hi! Thanks for your interest in contributing to [PyThaiNLP](https://github.com/wannaphongcom/pythainlp).
3+
Hi! Thanks for your interest in contributing to [PyThaiNLP](https://github.com/PyThaiNLP/pythainlp).
44
In this document we'll try to summarize everything that you need to know to
55
do a good job.
66

@@ -38,13 +38,8 @@ branches.
3838
- Try to write both Python 2 and Python3-friendly code so won't be a pain for
3939
us to support both versions.
4040

41-
## Code Guidelines
42-
43-
- Use [PEP8](http://www.python.org/dev/peps/pep-0008/);
44-
- Write tests for your new features (please see "Tests" topic below);
45-
4641
# Discussion
4742

48-
https://www.facebook.com/groups/1997970287091118/ and https://github.com/wannaphongcom/pythainlp/issues
43+
https://www.facebook.com/groups/thainlp and https://github.com/wannaphongcom/pythainlp/issues
4944

5045
Happy hacking! (;

README-pythainlp.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
![PyThaiNLP Logo](https://avatars0.githubusercontent.com/u/32934255?s=200&v=4)
2+
3+
# PyThaiNLP 1.7
4+
5+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/cb946260c87a4cc5905ca608704406f7)](https://www.codacy.com/app/pythainlp/pythainlp_2?utm_source=github.com&utm_medium=referral&utm_content=PyThaiNLP/pythainlp&utm_campaign=Badge_Grade)[![pypi](https://img.shields.io/pypi/v/pythainlp.svg)](https://pypi.python.org/pypi/pythainlp)
6+
[![Build Status](https://travis-ci.org/PyThaiNLP/pythainlp.svg?branch=develop)](https://travis-ci.org/PyThaiNLP/pythainlp)
7+
[![Build status](https://ci.appveyor.com/api/projects/status/9g3mfcwchi8em40x?svg=true)](https://ci.appveyor.com/project/wannaphongcom/pythainlp-9y1ch)
8+
[![Coverage Status](https://coveralls.io/repos/github/PyThaiNLP/pythainlp/badge.svg?branch=dev)](https://coveralls.io/github/PyThaiNLP/pythainlp?branch=dev)
9+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
10+
11+
12+
13+
PyThaiNLP is a Python library for natural language processing (NLP) of Thai language.
14+
15+
## What's new in PyThaiNLP 1.7 ?
16+
17+
- Deprecate Python 2 support
18+
- Refactor pythainlp.tokenize.pyicu for readability
19+
- Add Thai NER model to pythainlp.ner
20+
- thai2vec v0.2 - larger vocab, benchmarking results on Wongnai dataset
21+
- Sentiment classifier based on ULMFit and various product review datasets
22+
- Add ULMFit utility to PyThaiNLP
23+
- Add Thai romanization model thai2rom
24+
- Retrain POS-tagging model
25+
- Improve word tokenize (newmm,mm) and dict_word_tokenize
26+
- Documentation added
27+
28+
## Install
29+
30+
```
31+
pip install pythainlp
32+
```
33+
34+
**Note for Windows**: marisa-trie wheels can be obtained from https://www.lfd.uci.edu/~gohlke/pythonlibs/#marisa-trie , then install it with pip, for example: `pip install marisa_trie‑0.7.5‑cp36‑cp36m‑win32.whl`
35+
36+
37+
38+
Docs : https://thainlp.org/pythainlp/docs/1.7/
39+
40+
GitHub : https://github.com/PyThaiNLP/pythainlp
41+
42+
Issues : https://github.com/PyThaiNLP/pythainlp/issues
43+

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
![PyThaiNLP Logo](https://avatars0.githubusercontent.com/u/32934255?s=200&v=4)
1+
2+
<p align="center">
3+
<img src="https://avatars0.githubusercontent.com/u/32934255?s=200&v=4">
4+
</p>
25

36
# PyThaiNLP
47

58
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/cb946260c87a4cc5905ca608704406f7)](https://www.codacy.com/app/pythainlp/pythainlp_2?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=PyThaiNLP/pythainlp&amp;utm_campaign=Badge_Grade)[![pypi](https://img.shields.io/pypi/v/pythainlp.svg)](https://pypi.python.org/pypi/pythainlp)
69
[![Build Status](https://travis-ci.org/PyThaiNLP/pythainlp.svg?branch=develop)](https://travis-ci.org/PyThaiNLP/pythainlp)
710
[![Build status](https://ci.appveyor.com/api/projects/status/9g3mfcwchi8em40x?svg=true)](https://ci.appveyor.com/project/wannaphongcom/pythainlp-9y1ch)
811
[![Coverage Status](https://coveralls.io/repos/github/PyThaiNLP/pythainlp/badge.svg?branch=dev)](https://coveralls.io/github/PyThaiNLP/pythainlp?branch=dev)
12+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
913

1014
Thai natural language processing in Python.
1115

@@ -38,7 +42,7 @@ $ pip install pythainlp
3842

3943
### Documentation
4044

41-
Read on [https://github.com/PyThaiNLP/pythainlp/tree/dev/docs](https://github.com/PyThaiNLP/pythainlp/tree/dev/docs)
45+
Read on [https://thainlp.org/pythainlp/docs/1.7/](https://thainlp.org/pythainlp/docs/1.7/)
4246

4347
### License
4448

@@ -89,7 +93,7 @@ $ pip install https://github.com/PyThaiNLP/pythainlp/archive/dev.zip
8993

9094
### เอกสารการใช้งาน
9195

92-
อ่านได้ที่ [https://github.com/PyThaiNLP/pythainlp/tree/dev/docs](https://github.com/PyThaiNLP/pythainlp/tree/dev/docs)
96+
อ่านได้ที่ [https://thainlp.org/pythainlp/docs/1.7/](https://thainlp.org/pythainlp/docs/1.7/)
9397

9498
### License
9599

8.75 KB
Binary file not shown.
1.91 KB
Binary file not shown.
-11 Bytes
Binary file not shown.
12.4 KB
Binary file not shown.
25 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)