vi-core-nlp is a library that supports Vietnamese NER by pattern matching .
Project description
NER/Intent classification for Vietnamese Appointment Chatbot
Usage
Extract Vietnamese phone number
Extract person name
import vi_nlp_core
from vi_nlp_core.extractor import Extractor
extractor = Extractor()
text = "tôi cần đặt bác sĩ tạ biên cương"
print(extractor.extract_person_name(text,'pattern'))
Extract Date
import vi_nlp_core
from vi_nlp_core.extractor import Extractor
extractor = Extractor()
text = "tôi sinh vào ngày 21-3-1997"
extractor.extract_date(text)
Extract Time
import vi_nlp_core
from vi_nlp_core.extractor import Extractor
extractor = Extractor()
text = '14:50 ngày 7 tháng 6'
print(extractor.extract_time(text,return_value=True)) #return value only
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for vi_nlp_core-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a305566741d83bef063a7f450bce433bb11d400d3b86a42dfa9d90c35c8f6f57 |
|
MD5 | 9322e92add6eaf61cd5493c009b95871 |
|
BLAKE2b-256 | bd7bf123d14a22bc3dc2971059ad72798938d90b9818c33a7e89cb58deb7778b |