mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-24 08:14:15 +03:00
Add spacy-pythainlp (#12038)
* Add spacy-pythainlp * Move submission to right section * Minor cleanup * Remove extra list call * Update universe.json Co-authored-by: Paul O'Leary McCann <polm@dampfkraft.com>
This commit is contained in:
parent
abb0ab109d
commit
31c1beba78
|
@ -4062,6 +4062,33 @@
|
||||||
"author_links": {
|
"author_links": {
|
||||||
"github": "yasufumy"
|
"github": "yasufumy"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "spacy-pythainlp",
|
||||||
|
"title": "spaCy-PyThaiNLP",
|
||||||
|
"slogan": "PyThaiNLP for spaCy",
|
||||||
|
"description": "This package wraps the PyThaiNLP library to add support for Thai to spaCy.",
|
||||||
|
"github": "PyThaiNLP/spaCy-PyThaiNLP",
|
||||||
|
"code_example": [
|
||||||
|
"import spacy",
|
||||||
|
"import spacy_pythainlp.core",
|
||||||
|
"",
|
||||||
|
"nlp = spacy.blank('th')",
|
||||||
|
"nlp.add_pipe('pythainlp')",
|
||||||
|
"doc = nlp('ผมเป็นคนไทย แต่มะลิอยากไปโรงเรียนส่วนผมจะไปไหน ผมอยากไปเที่ยว')",
|
||||||
|
"",
|
||||||
|
"print(list(doc.sents))",
|
||||||
|
"# output: [ผมเป็นคนไทย แต่มะลิอยากไปโรงเรียนส่วนผมจะไปไหน , ผมอยากไปเที่ยว]"
|
||||||
|
],
|
||||||
|
"code_language": "python",
|
||||||
|
"author": "Wannaphong Phatthiyaphaibun",
|
||||||
|
"author_links": {
|
||||||
|
"twitter": "@wannaphong_p",
|
||||||
|
"github": "wannaphong",
|
||||||
|
"website": "https://iam.wannaphong.com/"
|
||||||
|
},
|
||||||
|
"category": ["pipeline", "research"],
|
||||||
|
"tags": ["Thai"]
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user