Giter Site home page Giter Site logo

Getting ORC-WER breakdown about meeteval HOT 4 OPEN

fgnt avatar fgnt commented on August 15, 2024
Getting ORC-WER breakdown

from meeteval.

Comments (4)

boeddeker avatar boeddeker commented on August 15, 2024 1

Now the code uses kaldialign to calculate insertions, deletions and substitutions. Hence, the generated files have now this information:

.../meeteval/example_files$ python -m meeteval.wer orcwer -h 'hyp*.stm' -r 'ref*.stm'
Wrote: .../hyp_orcwer_per_reco.json
Wrote: .../hyp_orcwer.json
.../meeteval/example_files$ cat hyp_orcwer.json
{
  "errors": 18,
  "length": 184,
  "insertions": 0,
  "deletions": 14,
  "substitutions": 4,
  "error_rate": 0.09782608695652174
}
.../meeteval/example_files$ cat hyp_orcwer_per_reco.json
{
  "recordingA": {
    "errors": 4,
    "length": 124,
    "insertions": 0,
    "deletions": 0,
    "substitutions": 4,
    "error_rate": 0.03225806451612903,
    "assignment": [
      "Alice",
      "Alice",
      "Bob",
      "Bob",
      "Alice",
      "Alice",
      "Alice",
      "Alice"
    ]
  },
  "recordingB": {
    "errors": 14,
    "length": 60,
    "insertions": 0,
    "deletions": 14,
    "substitutions": 0,
    "error_rate": 0.23333333333333334,
    "assignment": [
      "Bob",
      "Bob",
      "Alice",
      "Alice"
    ]
  }

Let me know, when you need more features or if a modification could simplify an integration in another framework.

from meeteval.

boeddeker avatar boeddeker commented on August 15, 2024

At the moment, it is not implemented. But we planned to integrate it. Since you are interested, I will take care to implement it.

Do you have a suggestion, how it should be obtained? ins/del/sub aren't unique values.
Do people expect to get the same as Kaldi?
I thought about adding my Kaldi wrapper, so that the optimization is done in python/cython, but the final WER is obtained with Kaldi (Editdistance is the same, but Kaldi additionally reports the ins/del/sub).

from meeteval.

desh2608 avatar desh2608 commented on August 15, 2024

One way would be to get the reference assignment and then use the kaldialign package to compute the ins/del/sub. This is the WER package used in icefall, for example, and is kaldi-compatible.

from meeteval.

boeddeker avatar boeddeker commented on August 15, 2024

Thanks for the pointer, I forgot that kaldialign exists. The code will be much cleaner with kaldialign, then a wrapper around kaldi could be, since adding a pip dependency is simple.

from meeteval.

Related Issues (8)

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.