Giter VIP home page Giter VIP logo

Comments (7)

amessina71 avatar amessina71 commented on August 17, 2024

This is a good idea

from benchmarkstt.

EyalLavi avatar EyalLavi commented on August 17, 2024

There will other metrics. Each metric should have its own structure.

{
"hypothesis": "machine-transcript.txt",
"reference":"human-transcript.txt",
"metrics":[
  {"type":"word-diff", "result":{"substitution":5, "deletions":10, "insertions":1, "correct":37}},
  {"type":"wer", "result":0.76}
]
}

from benchmarkstt.

EyalLavi avatar EyalLavi commented on August 17, 2024

@MikeSmithEU in the future we may report metrics that are not numbers, so perhaps we should make all values strings, like:

{"type":"word-diff", "result":{"substitution":"5", "deletions":"10", "insertions":"1", "correct":"37"}},
  {"type":"wer", "result":"0.76"}

This way we leave the interpretation to the client.

from benchmarkstt.

MikeSmithEU avatar MikeSmithEU commented on August 17, 2024

Indeed @EyalLavi Yet when the type fits a js type I would not pass it as a string, but the type itself.
In practice this means supporting: array, object, int, float, string, null/undefined (would use null, never undefined).

from benchmarkstt.

EyalLavi avatar EyalLavi commented on August 17, 2024

The discussion above revolved around the summary of the diff results. I would like to add the diffs themsleves to the scope. This will allow apps to do their own processing on the results. How do we output those? Standard diff format wrap in the json? Or separately as standard diff?

from benchmarkstt.

EyalLavi avatar EyalLavi commented on August 17, 2024

For Release 1, output the worddiffs metric. Something like this:

{
	"worddiffs":
	[{
	"ref":"hello",
	"hyp":"hello" 	         //match
	},
	{
	"ref":"world",
	"hyp":null		//deletion
	},
	{
	"ref":null,
	"hyp":"foo"		//insertion
	},
	{
	"ref":"bar",
	"hyp":"gar"		//replacement
	}]
}

For future releases, consider using the canonical transcript format.

from benchmarkstt.

EyalLavi avatar EyalLavi commented on August 17, 2024

Discussion with @MikeSmithEU today:

  • Output JSON format is metric-dependent
  • Currently, -o json only

Example:

--worddiffs -o json

Produces:

[
    {"metric": "worddiffs",
    "result": [
        {
            "hypothesis": "this",
            "type": "equal",
            "reference": "this"
        },
        {
            "hypothesis": "is",
            "type": "equal",
            "reference": "is"
        },
        {
            "hypothesis": null,
            "type": "delete",
            "reference": "reference"
        }
     ]
}
]

from benchmarkstt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.