Skip to main content

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:

### 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ais-wordnet, version 0.0.12
Filename, size File type Python version Upload date Hashes
Filename, size ais_wordnet-0.0.12-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ais-wordnet-0.0.12.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page