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.ner.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.ner.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.ner.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.1.tar.gz
(76.2 kB
view hashes)
Built Distribution
Close
Hashes for vi_nlp_core-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa42381c3d3b9fe66cef37cf7f8c8582785d6d7a4de42dc28ab36df732982af1 |
|
MD5 | e1f52ac3cd6823cd353788273541d77d |
|
BLAKE2b-256 | c652f9d12dfcfc7b020ab078c3ac8d44dfc9809eca46246a27ffa6755e134c34 |