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.2.tar.gz
(76.3 kB
view hashes)
Built Distribution
Close
Hashes for vi_nlp_core-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94c86dfb74a2e30be6f2806ab8fb702d659d7e2cdfdff5475f289239869b4e39 |
|
MD5 | 9e9e3457fcd514e7fed6064b4e8ff9e6 |
|
BLAKE2b-256 | c851f5b07c0b4803660d32583d7a684b97a8b8c9560e939224d6a6c0bec88e61 |