An interface for the wordnet
Project description
# ais-wordnet
## Install
```
pip install ais_wordnet
```
## Usage
### Get Synset of 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')
# get synset
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ì'
# get sentence
s = sentence.Sentence(sentence,tag_list)
print(s.get_similar_sentences_as_list(sample))
```
## Built With
* [setuptools]
* [twine]
## Contributing
Not yet
## Versioning
Not yet
## Authors
* **Minh Dinh** - *Initial work* -
## License
This project is licensed under the MIT License
## Acknowledgments
* Hat tip to anyone whose code was used
* Inspiration
* etc
## Install
```
pip install ais_wordnet
```
## Usage
### Get Synset of 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')
# get synset
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ì'
# get sentence
s = sentence.Sentence(sentence,tag_list)
print(s.get_similar_sentences_as_list(sample))
```
## Built With
* [setuptools]
* [twine]
## Contributing
Not yet
## Versioning
Not yet
## Authors
* **Minh Dinh** - *Initial work* -
## License
This project is licensed under the MIT License
## Acknowledgments
* Hat tip to anyone whose code was used
* Inspiration
* etc
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.10.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for ais_wordnet-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d495f2ea5c1c0d04798ed35e103fccfad17be267d3736f30e5244b1fa3e8b8ec |
|
MD5 | e5505b107f13c5a65af3b22b885dba76 |
|
BLAKE2b-256 | 9ed25680140036364b84fde5d033966c3b93f53db49e07d2da9ff069d43678b2 |