Skip to content

Commit

Permalink
Fix #144
Browse files Browse the repository at this point in the history
  • Loading branch information
makcedward committed Aug 22, 2020
1 parent e47c036 commit 77804b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
NLPAUG Change Log
================

**0.0.18 Aug 21, 2020
* Fix PPDB model misloaded nltk module[#144](https:/makcedward/nlpaug/issues/144)

**0.0.17 Aug 20, 2020
* Enhance default tokenizer and reverse tokenizer[#143](https:/makcedward/nlpaug/issues/143)
* Introduce Abstractive Summarization in sentence ausgmenter (Check out example from [here](https:/makcedward/nlpaug/blob/master/example/textual_augmenter.ipynb))

**0.0.16 Aug 10, 2020
* Fix [#142](https:/makcedward/nlpaug/issues/142)

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ pip install librosa>=0.7.1

## Recent Changes

**0.0.17dev
* Enhance default tokenizer and reverse tokenizer[#143](https:/makcedward/nlpaug/issues/143)
* Introduce Abstractive Summarization in sentence ausgmenter (Check out example from [here](https:/makcedward/nlpaug/blob/master/example/textual_augmenter.ipynb))
**0.0.18 Aug 21, 2020
* Fix PPDB model misloaded nltk module[#144](https:/makcedward/nlpaug/issues/144)

See [changelog](https:/makcedward/nlpaug/blob/master/CHANGE.md) for more details.

Expand Down
5 changes: 0 additions & 5 deletions nlpaug/model/word_dict/ppdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ def __init__(self, dict_path):
self.score_threshold = self.get_default_score_thresholds() # TODO: support other filtering
self.is_synonym = True # TODO: antonyms

try:
import wordnet
except ModuleNotFoundError:
raise ModuleNotFoundError('Missed nltk library. Install it via `pip install nltk`')

self._init()

def _init(self):
Expand Down

0 comments on commit 77804b9

Please sign in to comment.