We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a6136 commit 0e960c9Copy full SHA for 0e960c9
pythainlp/corpus/core.py
@@ -585,9 +585,6 @@ def remove(name: str) -> bool:
585
# FileNotFoundError: [Errno 2] No such file or directory:
586
# '/usr/local/lib/python3.6/dist-packages/pythainlp/corpus/ttc'
587
"""
588
- if _CHECK_MODE == "1":
589
- print("PyThaiNLP is read-only mode. It can't remove corpus.")
590
- return False
591
with open(corpus_db_path(), "r", encoding="utf-8-sig") as f:
592
db = json.load(f)
593
data = [
0 commit comments