cadia-lvl / eyra Goto Github PK
View Code? Open in Web Editor NEWThis project forked from eyra-is/eyra
License: Apache License 2.0
This project forked from eyra-is/eyra
License: Apache License 2.0
Change the automatic grade thresholds. the medium grades are meant to be looked at by people.
high 100-88
medium 88>-78 (20% WER mantra)
low 78>
A few scripts import methods from qc/server-interface/util.py and that fails.
e.x. when running MarosijoModule.py you get the following error.
from util import errLog, log, isWavHeaderOnly
ImportError: cannot import name 'errLog'
That is because the script looks into sys.path and finds
/home/dem/.local/lib/python3.6/site-packages/util.py
before finding the desired util.py file.
Recommendation:
Change the name of the file to utils.py or any other descriptive name for that matter.
Example result if you call GET /backend/qc/report/session/<session_id>
:
{
"status": "processing",
"modules": [
"{\"perRecordingStats\": [{\"stats\": {\"old_wer_norm\": 1.0, \"startdel\": 0, \"del\": 0, \"wer\": 1.0, \"hybrid\": 1.0, \"sub\": 0, \"hyp\": \"skilor\\u00f0sbundin refsing fyrir \\u00e1r\\u00e1sir\", \"distance\": 0, \"error\": \"no_error\", \"extraInsertions\": 0, \"accuracy\": 1.0, \"onlyInsOrSub\": false, \"ins\": 0, \"enddel\": 0, \"correct\": 4, \"empty\": false, \"ops\": [\"C\", \"C\", \"C\", \"C\"], \"phone_acc\": 1.0}, \"recordingId\": 33400}, {\"stats\": {\"old_wer_norm\": 0.0, \"startdel\": 0, \"del\": 0, \"wer\": 0.4444444444444444, \"hybrid\": 0.5, \"sub\": 5, \"hyp\": \"\\u00fearna d\\u00fak !s !c !\\u026a !v !\\u026a !\\u00f0 !i !n !t !o !u og bj\\u00e1nalegri sk\\u00e1l\", \"distance\": 12, \"error\": \"no_error\", \"extraInsertions\": 0, \"accuracy\": 0.5714285714285714, \"onlyInsOrSub\": false, \"ins\": 7, \"enddel\": 0, \"correct\": 4, \"empty\": false, \"ops\": [\"C\", \"I\", \"I\", \"I\", \"I\", \"I\", \"I\", \"I\", \"S\", \"S\", \"S\", \"S\", \"S\", \"C\", \"C\", \"C\"], \"phone_acc\": 0.5714285714285714}, \"recordingId\": 33401}, {\"stats\": {\"old_wer_norm\": 0.8, \"startdel\": 0, \"del\": 1, \"wer\": 0.8, \"hybrid\": 0.8, \"sub\": 0, \"hyp\": \"kosningin f\\u00f3r fram s\\u00ed\\u00f0astli\\u00f0inn\", \"distance\": 1, \"error\": \"no_error\", \"extraInsertions\": 0, \"accuracy\": 0.7567567567567568, \"onlyInsOrSub\": false, \"ops\": [\"C\", \"C\", \"C\", \"C\", \"D\"], \"enddel\": 1, \"correct\": 4, \"empty\": false, \"ins\": 0, \"phone_acc\": 0.7567567567567568}, \"recordingId\": 33402}, {\"stats\": {\"old_wer_norm\": 0.75, \"startdel\": 0, \"del\": 1, \"wer\": 0.75, \"hybrid\": 0.75, \"sub\": 0, \"hyp\": \"hva\\u00f0 ver\\u00f0ur lengi\", \"distance\": 1, \"error\": \"no_error\", \"extraInsertions\": 0, \"accuracy\": 0.8421052631578947, \"onlyInsOrSub\": false, \"ops\": [\"C\", \"C\", \"C\", \"D\"], \"enddel\": 1, \"correct\": 3, \"empty\": false, \"ins\": 0, \"phone_acc\": 0.8421052631578947}, \"recordingId\": 33403}, {\"stats\": {\"old_wer_norm\": 1.0, \"startdel\": 0, \"wer\": 1.0, \"hybrid\": 1.0, \"distance\": 0, \"error\": \"no_error\", \"extraInsertions\": 0, \"onlyInsOrSub\": false, \"ins\": 0, \"phone_acc\": 1.0, \"sub\": 0, \"hyp\": \"tugir hafa s\\u00e6rst a\\u00f0 s\\u00f6gn yfirvalda\", \"del\": 0, \"empty\": false, \"accuracy\": 1.0, \"enddel\": 0, \"correct\": 6, \"ops\": [\"C\", \"C\", \"C\", \"C\", \"C\", \"C\"]}, \"recordingId\": 33404}, {\"stats\": {\"old_wer_norm\": 0.8, \"startdel\": 0, \"wer\": 0.8, \"hybrid\": 0.8, \"distance\": 1, \"error\": \"no_error\", \"extraInsertions\": 0, \"onlyInsOrSub\": false, \"ins\": 0, \"phone_acc\": 0.71875, \"sub\": 0, \"hyp\": \"fj\\u00f3rir \\u00e1 sj\\u00fakrah\\u00fas eftir\", \"del\": 1, \"empty\": false, \"accuracy\": 0.71875, \"enddel\": 1, \"correct\": 4, \"ops\": [\"C\", \"C\", \"C\", \"C\", \"D\"]}, \"recordingId\": 33405}], \"sessionId\": 355, \"totalStats\": {\"lowerUtt\": 4, \"avgAcc\": 0.859375, \"upperUtt\": 6, \"accuracy\": 0.8259738239179029}, \"requestId\": \"963753bc-a57f-43c2-8604-190e7c35f836\"}"
],
"sessionId": 355
}
Expected according to ClientServerAPI.md
{"sessionId": ...,
"status": "processing",
"modules" {
"marosijo" : {
"perRecordingStats": [
{"recordingId": ...,
"stats": {...}
},
...]}
]
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.