Skip to content

Commit 3cd896c

Browse files
committed
fixed the cli commands
1 parent 1a7b350 commit 3cd896c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pythainlp/cli/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import io
88
import sys
99
from argparse import ArgumentError, ArgumentParser
10-
from pythainlp.cli import tokenize, soundex
10+
from pythainlp.cli import tokenize, soundex, tag, benchmark, misspell
1111

1212
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
1313
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding="utf-8")
@@ -42,6 +42,10 @@ def exit_if_empty(command: str, parser: ArgumentParser) -> None:
4242
COMMAND_MAP = {
4343
"tokenize": tokenize,
4444
"soundex": soundex,
45+
"tag": tag,
46+
"benchmark": benchmark,
47+
"misspell": misspell,
48+
4549
}
4650

4751
# Check if a command was provided and if it's one we know

0 commit comments

Comments
 (0)