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 Distribution
vi_nlp_core-1.0.0.tar.gz
(20.0 kB
view hashes)
Built Distribution
Close
Hashes for vi_nlp_core-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 474c8031d7e05c0a5c23de8f6b2cd313797d4662fe9dc6b7b200489380be0442 |
|
MD5 | 43a710f2399c3dd5c4dab5cf81e55638 |
|
BLAKE2b-256 | c56e2e451bab2effb783d15e00a3fa0ac8662c411a6bb48525be39ae62bbf617 |