diff --git a/CITATION.cff b/CITATION.cff index 665542b..804d84d 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -7,8 +7,8 @@ type: software authors: - family-names: Suntorntip given-names: Thanathip - - family-names: "Suriyawongkul" - given-names: "Arthit" + - family-names: Suriyawongkul + given-names: Arthit orcid: "https://orcid.org/0000-0002-9698-1899" - family-names: Phatthiyaphaibun given-names: Wannaphong diff --git a/README.md b/README.md index d10ff94..bae6f95 100644 --- a/README.md +++ b/README.md @@ -191,5 +191,6 @@ Issues: ## License -nlpO3 is copyrighted by its authors and licensed under terms of the Apache -Software License 2.0 (Apache-2.0) - see file [LICENSE](./LICENSE) for details. +nlpO3 is copyrighted by its authors +and licensed under terms of the Apache Software License 2.0 (Apache-2.0). +See file [LICENSE](./LICENSE) for details. diff --git a/nlpo3-cli/README.md b/nlpo3-cli/README.md index 044ade3..c2af967 100644 --- a/nlpo3-cli/README.md +++ b/nlpo3-cli/README.md @@ -27,3 +27,9 @@ nlpo3 help ```bash echo "ฉันกินข้าว" | nlpo3 segment ``` + +## License + +nlpo3-cli is copyrighted by its authors +and licensed under terms of the Apache Software License 2.0 (Apache-2.0). +See file [LICENSE](./LICENSE) for details. diff --git a/nlpo3-nodejs/Cargo.toml b/nlpo3-nodejs/Cargo.toml index d3a7411..e51753d 100644 --- a/nlpo3-nodejs/Cargo.toml +++ b/nlpo3-nodejs/Cargo.toml @@ -5,8 +5,8 @@ edition = "2018" license = "Apache-2.0" authors = ["Thanathip Suntorntip Gorlph"] description = "Node binding for nlpO3 Thai language processing library" -keywords = ["thai", "tokenizer", "nlp", "word-segmentation"] categories = ["text-processing"] +keywords = ["thai", "tokenizer", "nlp", "word-segmentation"] homepage = "https://github.com/PyThaiNLP/nlpo3/tree/main/nlpo3-nodejs/" repository = "https://github.com/PyThaiNLP/nlpo3/" documentation = "https://github.com/PyThaiNLP/nlpo3/tree/main/nlpo3-nodejs/README.md" diff --git a/nlpo3-nodejs/README.md b/nlpo3-nodejs/README.md index 6611086..7d7756c 100644 --- a/nlpo3-nodejs/README.md +++ b/nlpo3-nodejs/README.md @@ -92,3 +92,9 @@ Please report issues at ## TODO - Find a way to build binaries and publish on npm. + +## License + +nlpO3 Node binding is copyrighted by its authors +and licensed under terms of the Apache Software License 2.0 (Apache-2.0). +See file [LICENSE](./LICENSE) for details. diff --git a/nlpo3-python/Cargo.toml b/nlpo3-python/Cargo.toml index 22454ff..130feab 100644 --- a/nlpo3-python/Cargo.toml +++ b/nlpo3-python/Cargo.toml @@ -15,7 +15,16 @@ homepage = "https://github.com/PyThaiNLP/nlpo3/tree/main/nlpo3-python" repository = "https://github.com/PyThaiNLP/nlpo3/" documentation = "https://github.com/PyThaiNLP/nlpo3/blob/main/nlpo3-python/README.md" readme = "README.md" -exclude = [".gitignore", ".github/", "notebooks/", "tests/", "*.sh"] +exclude = [ + ".gitignore", + ".github/", + "build/", + "dist/", + "notebooks/", + "target", + "tests/", + "*.sh", +] [lib] name = "_nlpo3_python_backend" diff --git a/nlpo3-python/README.md b/nlpo3-python/README.md index 4652b7e..3e68601 100644 --- a/nlpo3-python/README.md +++ b/nlpo3-python/README.md @@ -103,6 +103,27 @@ python -m build This should generate a wheel file, in `dist/` directory, which can be installed by pip. +To install a wheel from a local directory: + +```bash +pip install dist/nlpo3-1.3.1-cp311-cp311-macosx_12_0_x86_64.whl +``` + +## Test + +To run the Python unit test: + +```bash +cd tests +python -m unittest +``` + ## Issues Please report issues at + +## License + +nlpO3 Python binding is copyrighted by its authors +and licensed under terms of the Apache Software License 2.0 (Apache-2.0). +See file [LICENSE](./LICENSE) for details. diff --git a/nlpo3-python/tests/test_tokenize.py b/nlpo3-python/tests/test_tokenize.py index 4cf1566..705db7b 100644 --- a/nlpo3-python/tests/test_tokenize.py +++ b/nlpo3-python/tests/test_tokenize.py @@ -175,7 +175,7 @@ def setUp(self): ) def test_segment(self): - DICT_FILENAME = "tests/data/test_dict.txt" + DICT_FILENAME = "data/test_dict.txt" DICT_NAME = "test_dict" load_dict(DICT_FILENAME, DICT_NAME)