lightning/pytorch_lightning/metrics
Jeff Yang 0a65826462
metrics: add BLEU (#2535)
* metrics: added bleu score and test bleu

* metrics: fixed type hints in bleu

* bleu score moved to metrics/functional/nlp.py

* refactor with torch.Tensor

* Update test_sequence.py

* refactor as Borda requests and nltk==3.2

* locked nltk==3.3

* nltk>=3.3, parametrized smooth argument for test

* fix bleu_score example

* added class BLEUScore metrics and test

* added class BLEUScore metrics and test

* update CHANGELOG

* refactor with torchtext

* torchtext changed to optional import

* fix E501 line too long

* add else: in optional import

* remove pragma: no-cover

* constants changed to CAPITALS

* remove class in tests

* List -> Sequence, conda -> pip, cast with tensor

* add torchtext in test.txt

* remove torchtext from test.txt

* bump torchtext to 0.5.0

* bump torchtext to 0.5.0

* Apply suggestions from code review

* ignore bleu score in doctest, renamed to nlp.py

* back to implementation with torch

* remove --ignore in CI test, proper reference format

* apply justus comment

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-07-22 09:58:24 -04:00
..
functional metrics: add BLEU (#2535) 2020-07-22 09:58:24 -04:00
__init__.py metrics: add BLEU (#2535) 2020-07-22 09:58:24 -04:00
classification.py [metrics] IoU Metric (#2062) 2020-06-18 09:06:31 -04:00
converters.py repair CI for Win (#2358) 2020-06-26 21:38:25 -04:00
metric.py fix dtype/device property not getting updated in submodules (#2657) 2020-07-21 15:18:57 -04:00
nlp.py metrics: add BLEU (#2535) 2020-07-22 09:58:24 -04:00
regression.py Add functional regression metrics (#2492) 2020-07-09 17:54:38 +02:00
sklearns.py Fix parameters and docs in metrics (#2473) 2020-07-08 14:11:40 +02:00