Skip to main content

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


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

vi_nlp_core-0.3.1-py3-none-any.whl (23.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page