thaispellcheck


Namethaispellcheck JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/pythainlp/Thai_Spell_Check
SummaryThai Spell Check
upload_time2023-04-02 10:04:22
maintainer
docs_urlNone
authorWannaphong Phatthiyaphaibun
requires_python
licenseApache Software License 2.0
keywords promptpay
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Thai Spell Check
Thai Spell Check using Conditional Random Field (CRF) (Machine learning)


## Requirements

- PyThaiNLP>=3.1
- sklearn-crfsuite

## Using

```python
import thaispellcheck
print(thaispellcheck.check("สวัสดีนะคับผม"))
```
result 

```
สวัสดีนะ<คำผิด>คับ</คำผิด>ผม
```

The words in <คำผิด> are wrong words.

if you wan to use autocorrect to fix the mistake word, use autocorrect=True in check function.
```python
import thaispellcheck
print(thaispellcheck.check("เราไปโรงเรยนกัน",autocorrect=True))
```
result

```
เราไปโรงเรียนกัน
```

## License

   Copyright 2019-2023 Wannaphong Phatthiyaphaibun

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
limitations under the License.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pythainlp/Thai_Spell_Check",
    "name": "thaispellcheck",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "promptpay",
    "author": "Wannaphong Phatthiyaphaibun",
    "author_email": "wannaphong@yahoo.com",
    "download_url": "https://files.pythonhosted.org/packages/29/7a/822590f1748bee401518422962ad052e2c81716d3894df2a6a306e797431/thaispellcheck-0.2.tar.gz",
    "platform": null,
    "description": "# Thai Spell Check\nThai Spell Check using Conditional Random Field (CRF) (Machine learning)\n\n\n## Requirements\n\n- PyThaiNLP>=3.1\n- sklearn-crfsuite\n\n## Using\n\n```python\nimport thaispellcheck\nprint(thaispellcheck.check(\"\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35\u0e19\u0e30\u0e04\u0e31\u0e1a\u0e1c\u0e21\"))\n```\nresult \n\n```\n\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35\u0e19\u0e30<\u0e04\u0e33\u0e1c\u0e34\u0e14>\u0e04\u0e31\u0e1a</\u0e04\u0e33\u0e1c\u0e34\u0e14>\u0e1c\u0e21\n```\n\nThe words in <\u0e04\u0e33\u0e1c\u0e34\u0e14> are wrong words.\n\nif you wan to use autocorrect to fix the mistake word, use autocorrect=True in check function.\n```python\nimport thaispellcheck\nprint(thaispellcheck.check(\"\u0e40\u0e23\u0e32\u0e44\u0e1b\u0e42\u0e23\u0e07\u0e40\u0e23\u0e22\u0e19\u0e01\u0e31\u0e19\",autocorrect=True))\n```\nresult\n\n```\n\u0e40\u0e23\u0e32\u0e44\u0e1b\u0e42\u0e23\u0e07\u0e40\u0e23\u0e35\u0e22\u0e19\u0e01\u0e31\u0e19\n```\n\n## License\n\n   Copyright 2019-2023 Wannaphong Phatthiyaphaibun\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\nlimitations under the License.\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Thai Spell Check",
    "version": "0.2",
    "split_keywords": [
        "promptpay"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b491e53e6ec1ef29d5c711121fb8e26f6ce185b959f0d47966be8ec7bc70bc86",
                "md5": "81a2904caa9ebb562889117d97d1eed9",
                "sha256": "a64791907cd890f618c679b04a938d7a30729501c7a773552db2461e0cab3885"
            },
            "downloads": -1,
            "filename": "thaispellcheck-0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "81a2904caa9ebb562889117d97d1eed9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 235553,
            "upload_time": "2023-04-02T10:04:20",
            "upload_time_iso_8601": "2023-04-02T10:04:20.255451Z",
            "url": "https://files.pythonhosted.org/packages/b4/91/e53e6ec1ef29d5c711121fb8e26f6ce185b959f0d47966be8ec7bc70bc86/thaispellcheck-0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "297a822590f1748bee401518422962ad052e2c81716d3894df2a6a306e797431",
                "md5": "c93619dc776007ce9fe0549dc5bba2a5",
                "sha256": "b207af96858d601b52f106c7f47646979f29dd0d766ae4e1aeb05efb6430ad0c"
            },
            "downloads": -1,
            "filename": "thaispellcheck-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c93619dc776007ce9fe0549dc5bba2a5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 238728,
            "upload_time": "2023-04-02T10:04:22",
            "upload_time_iso_8601": "2023-04-02T10:04:22.089360Z",
            "url": "https://files.pythonhosted.org/packages/29/7a/822590f1748bee401518422962ad052e2c81716d3894df2a6a306e797431/thaispellcheck-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-02 10:04:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "pythainlp",
    "github_project": "Thai_Spell_Check",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "thaispellcheck"
}
        
Elapsed time: 0.06076s