diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c3a6a5fce6..bb9459ecb3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -130,7 +130,6 @@ Follow these steps to start contributing: ```bash $ pip install -U git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort ``` - 5. Develop the features on your branch. As you work on the features, you should make sure that the test suite diff --git a/examples/summarization/t5/evaluate_cnn.py b/examples/summarization/t5/evaluate_cnn.py index 3c923a46d7..d2d6ee932e 100644 --- a/examples/summarization/t5/evaluate_cnn.py +++ b/examples/summarization/t5/evaluate_cnn.py @@ -2,9 +2,9 @@ import argparse from pathlib import Path import torch +from rouge_score import rouge_scorer, scoring from tqdm import tqdm -from rouge_score import rouge_scorer, scoring from transformers import T5ForConditionalGeneration, T5Tokenizer diff --git a/examples/translation/t5/evaluate_wmt.py b/examples/translation/t5/evaluate_wmt.py index 4db5564f76..b2be05a950 100644 --- a/examples/translation/t5/evaluate_wmt.py +++ b/examples/translation/t5/evaluate_wmt.py @@ -2,9 +2,9 @@ import argparse from pathlib import Path import torch +from sacrebleu import corpus_bleu from tqdm import tqdm -from sacrebleu import corpus_bleu from transformers import T5ForConditionalGeneration, T5Tokenizer diff --git a/setup.cfg b/setup.cfg index a7c2e6fa7b..b89e490177 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,6 +16,8 @@ known_third_party = PIL psutil pytorch_lightning + rouge_score + sacrebleu seqeval sklearn tensorboardX