An interface for the wordnet
Project description
# ais-wordnet
### Get Synset of the specified word
from ais import wordnet
from ais import sentence
test_data = [‘phòng’,’đảng’,’chính quyền’,’làm chủ’,’ban’,’đảng viên’]
sample_wordnet = wordnet.Wordnet(‘wordnet10-4-2019.xlsx’)
- for each in test_data:
print(sample.get_ez_synsets_as_row(each))
### Get similar sentences
from ais import sentence
tag_list = [‘n’,’v’,’a’,’e’] # tags from pos_tag() of underthesea library
sentence = ‘thế lực thù địch có những âm mưu gì’
s = sentence.Sentence(sentence,tag_list)
print(s.get_similar_sentences_as_list(sample))
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
ais-wordnet-0.0.13.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for ais_wordnet-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b0e01c8d2fcc4a514a2ea29f4dba08df6e73a9f48444fd2aef571e36c997d5d |
|
MD5 | 176fb6aa5162b3b40cabbd1423d516a1 |
|
BLAKE2b-256 | c56be2ff4d21fef39304c01350260f04cb45f3533bc89de9238f6f98e7fb8f52 |