Skip to content

kida7/pyvi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Vietnamese Toolkit

Pyvi performs tokenizing / pos-tagging for Vietnamese in Python.

Algorithm: Conditional Random Field

Vietnamese tokenizer f1_score = 0.978637686

Vietnamese pos tagging f1_score = 0.92520656

POS TAGS:

  • A - Adjective
  • C - Coordinating conjunction
  • E - Preposition
  • I - Interjection
  • L - Determiner
  • M - Numeral
  • N - Common noun
  • Nc - Noun Classifier
  • Ny - Noun abbreviation
  • Np - Proper noun
  • Nu - Unit noun
  • P - Pronoun
  • R - Adverb
  • S - Subordinating conjunction
  • T - Auxiliary, modal words
  • V - Verb
  • X - Unknown
  • F - Filtered out (punctuation)

Installation

At the command line with pip

$ pip install pyvi

Uninstall

$ pip uninstall pyvi

Usage

from pyvi import ViTokenizer, ViPosTagger

ViTokenizer.tokenize(u"Trường đại học bách khoa hà nội")

ViPosTagger.postagging(ViTokenizer.tokenize(u"Trường đại học Bách Khoa Hà Nội")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%