ibleu / README.md
rahular's picture
added example to README
52c6cb9
|
raw
history blame contribute delete
No virus
661 Bytes

A newer version of the Gradio SDK is available: 4.44.0

Upgrade
metadata
title: iBLEU
emoji: πŸ“Š
colorFrom: red
colorTo: indigo
sdk: gradio
sdk_version: 3.16.1
app_file: app.py
pinned: false

iBLEU measures the adequacy and dissimilarity of generated paraphrases.

Example:

    >>> inputs = ["greetings general kenobi", "foo  foo bar bar"]
    >>> predictions = ["hello there general kenobi", "foo bar foobar"]
    >>> references = [["hello there general kenobi", "hello there !"], ["foo bar foobar", "foo bar foobar"]]
    >>> ibleu = evaluate.load("rahular/ibleu")
    >>> results = ibleu.compute(inputs=inputs, predictions=predictions, references=references)
    >>> print(results)
    {'score': 60.41585343630594}