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-0.3.tar.gz
(21.2 kB
view hashes)
Built Distribution
vi_nlp_core-0.3-py3-none-any.whl
(23.7 kB
view hashes)
Close
Hashes for vi_nlp_core-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 608330cd0f1e52144a2bc156e5fa7303317ed72494172924d92174649a07a225 |
|
MD5 | 1beec1f893fdc257eb111ab8a4c9cb66 |
|
BLAKE2b-256 | adf72038eed4ad7a38909c24a5dc428da1e8b330590616e1dd85b57605da2444 |