From 7c773d99924d427aceee26c5bd9f887ce14b50cb Mon Sep 17 00:00:00 2001 From: Wannaphong Date: Fri, 19 Jul 2024 23:32:20 +0700 Subject: [PATCH] Change pythainlp.github.io to pythainlp.org --- CONTRIBUTING.md | 2 +- README.md | 6 +++--- README_TH.md | 8 ++++---- docs/index.rst | 2 +- docs/notes/FAQ.rst | 2 +- docs/notes/getting_started.rst | 4 ++-- pythainlp/corpus/__init__.py | 2 +- pythainlp/corpus/common.py | 6 +++--- pythainlp/corpus/core.py | 4 ++-- pythainlp/wsd/core.py | 2 +- setup.py | 6 +++--- tokenization-benchmark.md | 20 ++++++++++---------- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 12ea0beca..ceaeda9b3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,7 +57,7 @@ automatically from "docstring" comments in source codes. This means the comment section in the source codes is important for the quality of documentation. - A docstring should start with one summary line, end with one line with a full stop (period), then be followed by a blank line before starting a new paragraph. -- A commit to release branches (e.g. `2.2`, `2.1`) with a title **"(build and deploy docs)"** (without quotes) will trigger the system to rebuild the documentation files and upload them to the website https://pythainlp.github.io/docs. +- A commit to release branches (e.g. `2.2`, `2.1`) with a title **"(build and deploy docs)"** (without quotes) will trigger the system to rebuild the documentation files and upload them to the website https://pythainlp.org/docs. ## Testing diff --git a/README.md b/README.md index 5f20220bc..5ce84c329 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,9 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร ## Getting Started -- PyThaiNLP 2 requires Python 3.7+. Python 2.7 users can use PyThaiNLP 1.6. See [2.0 change log](https://github.com/PyThaiNLP/pythainlp/issues/118) | [Upgrading from 1.7](https://pythainlp.github.io/docs/2.0/notes/pythainlp-1_7-2_0.html) | [Upgrading ThaiNER from 1.7](https://github.com/PyThaiNLP/pythainlp/wiki/Upgrade-ThaiNER-from-PyThaiNLP-1.7-to-PyThaiNLP-2.0) -- [PyThaiNLP Get Started notebook](https://pythainlp.github.io/tutorials/notebooks/pythainlp_get_started.html) | [API document](https://pythainlp.github.io/docs) | [Tutorials](https://pythainlp.github.io/tutorials) -- [Official website](https://pythainlp.github.io/) | [PyPI](https://pypi.org/project/pythainlp/) | [Facebook page](https://www.facebook.com/pythainlp/) +- PyThaiNLP 2 requires Python 3.7+. Python 2.7 users can use PyThaiNLP 1.6. See [2.0 change log](https://github.com/PyThaiNLP/pythainlp/issues/118) | [Upgrading from 1.7](https://pythainlp.org/docs/2.0/notes/pythainlp-1_7-2_0.html) | [Upgrading ThaiNER from 1.7](https://github.com/PyThaiNLP/pythainlp/wiki/Upgrade-ThaiNER-from-PyThaiNLP-1.7-to-PyThaiNLP-2.0) +- [PyThaiNLP Get Started notebook](https://pythainlp.org/tutorials/notebooks/pythainlp_get_started.html) | [API document](https://pythainlp.org/docs) | [Tutorials](https://pythainlp.org/tutorials) +- [Official website](https://pythainlp.org/) | [PyPI](https://pypi.org/project/pythainlp/) | [Facebook page](https://www.facebook.com/pythainlp/) - [Who uses PyThaiNLP?](https://github.com/PyThaiNLP/pythainlp/blob/dev/INTHEWILD.md) - [Model cards](https://github.com/PyThaiNLP/pythainlp/wiki/Model-Cards) - for technical details, caveats, and ethical considerations of the models developed and used in PyThaiNLP diff --git a/README_TH.md b/README_TH.md index c7b6d0a25..72e6db748 100644 --- a/README_TH.md +++ b/README_TH.md @@ -27,9 +27,9 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร ## เริ่มต้นกับ PyThaiNLP -พวกเราได้จัดทำ [PyThaiNLP Get Started Tutorial](https://pythainlp.github.io/tutorials/notebooks/pythainlp_get_started.html) สำหรับสำรวจความสามารถของ PyThaiNLP; พวกเรามีเอกสารสอนใช้งาน สามารถศึกษาได้ที่ [หน้า tutorial](https://pythainlp.github.io/tutorials). +พวกเราได้จัดทำ [PyThaiNLP Get Started Tutorial](https://pythainlp.org/tutorials/notebooks/pythainlp_get_started.html) สำหรับสำรวจความสามารถของ PyThaiNLP; พวกเรามีเอกสารสอนใช้งาน สามารถศึกษาได้ที่ [หน้า tutorial](https://pythainlp.org/tutorials). -อ่านเอกสารล่าสุดได้ที่ [https://pythainlp.github.io/docs](https://pythainlp.github.io/docs). +อ่านเอกสารล่าสุดได้ที่ [https://pythainlp.org/docs](https://pythainlp.org/docs). พวกเราพยายามทำให้โมดูลใช้งานได้ง่ายที่สุดเท่าที่จะเป็นไปได้; ตัวอย่างเช่น บางชุดข้อมูล (เช่น รายการคำและตัวแบบภาษา) จะถูกดาวน์โหลดอัตโนมัติเมื่อมีการเรียกใช้งาน โดย PyThaiNLP จะจัดเก็บข้อมูลเหล่านั้นไว้ในโฟลเดอร์ `~/pythainlp-data` เป็นค่าเริ่มต้น แต่ผู้ใช้งานสามารถระบุตำแหน่งที่ต้องการได้เองผ่านค่า environment variable `PYTHAINLP_DATA_DIR` อ่านรายละเอียดคลังข้อมูลเพิ่มเติมได้ที่ [PyThaiNLP/pythainlp-corpus](https://github.com/PyThaiNLP/pythainlp-corpus). @@ -53,7 +53,7 @@ PyThaiNLP มีความสามารถพื้นฐานสำหร - Command-line interface for basic functions, like tokenization and pos tagging (run `thainlp` in your shell) -อ่านรายละเอียดได้ที่ [tutorials](https://pythainlp.github.io/tutorials) +อ่านรายละเอียดได้ที่ [tutorials](https://pythainlp.org/tutorials) ## การติดตั้ง @@ -114,7 +114,7 @@ thainlp help ## ผู้ใช้งาน Python 2 - PyThaiNLP 2 สนับสนุน Python 3.6 ขึ้นไป บางความสามารถ สามารถใช้งานกับ Python 3 รุ่นก่อนหน้าได้ แต่ไม่ได้มีการทดสอบว่าใช้งานได้หรือไม่ อ่านเพิ่มเติม [1.7 -> 2.0 change log](https://github.com/PyThaiNLP/pythainlp/issues/118). - - [Upgrading from 1.7](https://pythainlp.github.io/docs/2.0/notes/pythainlp-1_7-2_0.html) + - [Upgrading from 1.7](https://pythainlp.org/docs/2.0/notes/pythainlp-1_7-2_0.html) - [Upgrade ThaiNER from 1.7](https://github.com/PyThaiNLP/pythainlp/wiki/Upgrade-ThaiNER-from-PyThaiNLP-1.7-to-PyThaiNLP-2.0) - ผู้ใช้งาน Python 2.7 สามารถใช้งาน PyThaiNLP 1.6 diff --git a/docs/index.rst b/docs/index.rst index 4825522ff..ce80d16f5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -10,7 +10,7 @@ PyThaiNLP documentation PyThaiNLP is a Python library for Thai natural language processing (NLP). -Website: `PyThaiNLP.github.io `_ +Website: `PyThaiNLP.github.io `_ .. toctree:: diff --git a/docs/notes/FAQ.rst b/docs/notes/FAQ.rst index 0c79b36e6..1a9fb1c5e 100644 --- a/docs/notes/FAQ.rst +++ b/docs/notes/FAQ.rst @@ -3,4 +3,4 @@ FAQ *Frequently Asked Questions about PyThaiNLP* -You can read the FAQ at `FAQ | PyThaiNLP GitHub `_ +You can read the FAQ at `FAQ | PyThaiNLP GitHub `_ diff --git a/docs/notes/getting_started.rst b/docs/notes/getting_started.rst index e47614b11..7ed752a1a 100644 --- a/docs/notes/getting_started.rst +++ b/docs/notes/getting_started.rst @@ -19,5 +19,5 @@ Thai has historically faced a lot of NLP challenges. A quick list of them includ Tutorial Notebooks ================== -- `PyThaiNLP Get Started `_ -- `Other tutorials `_ +- `PyThaiNLP Get Started `_ +- `Other tutorials `_ diff --git a/pythainlp/corpus/__init__.py b/pythainlp/corpus/__init__.py index 8f6b01580..8765bde05 100644 --- a/pythainlp/corpus/__init__.py +++ b/pythainlp/corpus/__init__.py @@ -53,7 +53,7 @@ _CHECK_MODE = os.getenv("PYTHAINLP_READ_MODE") # URL of remote corpus catalog -_CORPUS_DB_URL = "https://pythainlp.github.io/pythainlp-corpus/db.json" +_CORPUS_DB_URL = "https://pythainlp.org/pythainlp-corpus/db.json" # filename of local corpus catalog _CORPUS_DB_FILENAME = "db.json" diff --git a/pythainlp/corpus/common.py b/pythainlp/corpus/common.py index a44544aa6..57bd5351f 100644 --- a/pythainlp/corpus/common.py +++ b/pythainlp/corpus/common.py @@ -262,7 +262,7 @@ def thai_dict() -> dict: """ Return Thai dictionary with definition from wiktionary. \n(See: `thai_dict\ - `_) + `_) :return: Thai words with part-of-speech type and definition :rtype: dict @@ -287,7 +287,7 @@ def thai_wsd_dict() -> dict: """ Return Thai Word Sense Disambiguation dictionary with definition from wiktionary. \n(See: `thai_dict\ - `_) + `_) :return: Thai words with part-of-speech type and definition :rtype: dict @@ -313,7 +313,7 @@ def thai_synonyms() -> dict: """ Return Thai synonyms. \n(See: `thai_synonym\ - `_) + `_) :return: Thai words with part-of-speech type and synonym :rtype: dict diff --git a/pythainlp/corpus/core.py b/pythainlp/corpus/core.py index 4a9f88215..660013b7a 100644 --- a/pythainlp/corpus/core.py +++ b/pythainlp/corpus/core.py @@ -224,7 +224,7 @@ def get_corpus_path( (Please see the filename in `this file - `_ + `_ If the corpus already exists:: @@ -407,7 +407,7 @@ def download( Download corpus. The available corpus names can be seen in this file: - https://pythainlp.github.io/pythainlp-corpus/db.json + https://pythainlp.org/pythainlp-corpus/db.json :param str name: corpus name :param bool force: force downloading diff --git a/pythainlp/wsd/core.py b/pythainlp/wsd/core.py index 71ac033f3..751a8962f 100644 --- a/pythainlp/wsd/core.py +++ b/pythainlp/wsd/core.py @@ -72,7 +72,7 @@ def get_sense( `_ to build get_sense function. Use Thai dictionary from wiktionary. - See `thai_dict `_. + See `thai_dict `_. Use sentence transformers model from \ `sentence-transformers/paraphrase-multilingual-mpnet-base-v2 \ diff --git a/setup.py b/setup.py index 949f1c20c..72897d889 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ transliteration, soundex generation, spell checking, and date and time parsing/formatting. -Website: [pythainlp.github.io](https://pythainlp.github.io/) +Website: [pythainlp.github.io](https://pythainlp.org/) # Install @@ -210,8 +210,8 @@ ], }, project_urls={ - "Documentation": "https://pythainlp.github.io/docs/5.0/", - "Tutorials": "https://pythainlp.github.io/tutorials/", + "Documentation": "https://pythainlp.org/docs/5.0/", + "Tutorials": "https://pythainlp.org/tutorials/", "Source Code": "https://github.com/PyThaiNLP/pythainlp", "Bug Tracker": "https://github.com/PyThaiNLP/pythainlp/issues", }, diff --git a/tokenization-benchmark.md b/tokenization-benchmark.md index 8d08b15a4..f29aeb5b8 100644 --- a/tokenization-benchmark.md +++ b/tokenization-benchmark.md @@ -36,16 +36,16 @@ as well as a module interface for later use in their development pipelines. | PyThaiNLP-newmm | dictionary-based | [![](https://img.shields.io/badge/BEST:val-WL:f1(0.6836)-yellow.svg)][res-BEST-val-PyThaiNLP-newmm] [![](https://img.shields.io/badge/THNC-WL:f1(0.7338)-yellow.svg)][res-THNC-PyThaiNLP-newmm] [![](https://img.shields.io/badge/Orchid-WL:f1(0.7223)-yellow.svg)][res-Orchid-PyThaiNLP-newmm] [![](https://img.shields.io/badge/WiseSight160-WL:f1(0.7248)-yellow.svg)][res-WiseSight160-PyThaiNLP-newmm] | | Sertis-BiGRU | Bi-directional RNN | [![](https://img.shields.io/badge/BEST:val-WL:f1(0.9251)-yellow.svg)][res-BEST-val-Sertis-BiGRU] [![](https://img.shields.io/badge/WiseSight160-WL:f1(0.8115)-yellow.svg)][res-WiseSight160-Sertis-BiGRU] | -[res-BEST-val-DeepCut]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=BEST-val-DeepCut -[res-THNC-DeepCut]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=THNC-DeepCut -[res-Orchid-DeepCut]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=Orchid-DeepCut -[res-WiseSight160-DeepCut]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=WiseSight160-DeepCut -[res-BEST-val-PyThaiNLP-newmm]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=BEST-val-PyThaiNLP-newmm -[res-THNC-PyThaiNLP-newmm]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=THNC-PyThaiNLP-newmm -[res-Orchid-PyThaiNLP-newmm]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=Orchid-PyThaiNLP-newmm -[res-WiseSight160-PyThaiNLP-newmm]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=WiseSight160-PyThaiNLP-newmm -[res-BEST-val-Sertis-BiGRU]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=BEST-val-Sertis-BiGRU -[res-WiseSight160-Sertis-BiGRU]: https://pythainlp.github.io/tokenization-benchmark-visualization/?experiment-name=WiseSight160-Sertis-BiGRU +[res-BEST-val-DeepCut]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=BEST-val-DeepCut +[res-THNC-DeepCut]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=THNC-DeepCut +[res-Orchid-DeepCut]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=Orchid-DeepCut +[res-WiseSight160-DeepCut]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=WiseSight160-DeepCut +[res-BEST-val-PyThaiNLP-newmm]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=BEST-val-PyThaiNLP-newmm +[res-THNC-PyThaiNLP-newmm]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=THNC-PyThaiNLP-newmm +[res-Orchid-PyThaiNLP-newmm]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=Orchid-PyThaiNLP-newmm +[res-WiseSight160-PyThaiNLP-newmm]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=WiseSight160-PyThaiNLP-newmm +[res-BEST-val-Sertis-BiGRU]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=BEST-val-Sertis-BiGRU +[res-WiseSight160-Sertis-BiGRU]: https://pythainlp.org/tokenization-benchmark-visualization/?experiment-name=WiseSight160-Sertis-BiGRU ## Installation (WIP)