Skip to content

Commit

Permalink
NOOP
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 684591302
  • Loading branch information
genehwung authored and tfx-copybara committed Oct 10, 2024
1 parent fc08bcf commit da01881
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion tensorflow_model_analysis/metrics/rouge.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from tensorflow_model_analysis.metrics import metric_util
from tensorflow_model_analysis.proto import config_pb2


from rouge_score import rouge_scorer
from rouge_score import scoring
from rouge_score import tokenizers
Expand Down
4 changes: 1 addition & 3 deletions tensorflow_model_analysis/metrics/rouge_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,7 @@ def check_result_nltk(got):
rouge_computation = rouge.Rouge(
rouge_type, use_stemmer=True, split_summaries=True
).computations()[0]
check_logs = False
if not check_logs:
check_split_summaries_result()
check_split_summaries_result()

def testRougeTokenizer(self):
rouge_type = 'rouge1'
Expand Down

0 comments on commit da01881

Please sign in to comment.