citadel-ai / langcheck

Simple, Pythonic building blocks to evaluate LLM applications.
https://langcheck.readthedocs.io/en/latest/index.html
MIT License
186 stars 17 forks source link

langcheck.augment.synonym doesn't work because of some missing nltk package #153

Closed liwii closed 1 month ago

liwii commented 1 month ago
>>> langcheck.augment.synonym('aaaa')

LookupError: 
**********************************************************************
  Resource averaged_perceptron_tagger_eng not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('averaged_perceptron_tagger_eng')

  For more information see: https://www.nltk.org/data.html

  Attempted to load taggers/averaged_perceptron_tagger_eng/
liwii commented 1 month ago

Ref:

https://github.com/citadel-ai/langcheck/blob/7f5b4be37126f8958483028f472c645121bf630c/src/langcheck/stats.py#L33