napoler / AutoBUlidVocabulary

Auto Bulid Vocabulary

Home Page:https://www.terrychan.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoBUlidVocabulary

Auto BUlid Vocabulary

安装

pip install AutoBUlidVocabulary

直接使用google vocab

from AutoBUlidVocabulary import *

ids=GVocab(path='./test/').bulid(['哈'])
print(ids)

>>> [1506]

ids=GVocab(path='./test/').text_voc_ids("哈士奇手机")
print(ids)

# 示例

from AutoBUlidVocabulary import Vocab

 word_list=["哈士奇","狗子"]
 vocab=Vocab()
 vocab_list=vocab.vocab_list(word_list)
 print(vocab_list)



About

Auto Bulid Vocabulary

https://www.terrychan.org/

License:GNU General Public License v3.0


Languages

Language:Python 100.0%