Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update command_line.rst #271

Merged
merged 1 commit into from
Sep 13, 2019
Merged
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
36 changes: 27 additions & 9 deletions docs/notes/command_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,45 @@ Run Command Line and type the commands:::

pythainlp

**Word segment**::
**Word tokenization**::

pythainlp -t TEXT -seg
pythainlp tokenization word --text TEXT

*Example*::

$ pythainlp -t แมวกินปลา -seg
แมว|กิน|ปลา
$ pythainlp tokenization word --text "ผมร<0e31>กประเทศไทย? สามารถ" --engine newmm
ผม|รัก|ประเทศไทย|?| |สามารถ

**Postag**::

pythainlp -t TEXT -pos
**Syllable tokenization**::

pythainlp tokenization syllable --text TEXT

*Example*::

$ pythainlp tokenization syllable --text "ผมร<0e31>กประเทศไทย? สามารถ"
ผม~รัก~ประ~เทศ~ไทย~? ~สา~มารถ

**Part-Of-Speech tagging**::

pythainlp tagging pos --text TEXT

*Example*::

$ pythainlp tagging pos --text "ผม|ไม่|กิน|เผ็ด"

**Soundex**::

pythainlp soundex --text TEXT

*Example*::

$ pythainlp -t แมวกินปลา -pos
แมว/NCMN กิน/VACT ปลา/NCMN
$ pythainlp soundex --text "บ<0e39>รณการ" --engine lk82
บE419

**Mange corpus**::

pythainlp -c
pythainlp corpus

**Help**::

Expand Down