Skip to content

Instantly share code, notes, and snippets.

@q121q
q121q / HTK_notes_1
Last active September 8, 2017 13:47
HTK_notes_1
When using HResults with two input mlf files (ref & rec) and both files
have the *same* extension for each utterance, HResults will fail to measure
the correct WER. Example output:
------------------------ Overall Results --------------------------
SENT: %Correct=100.00 [H=300, S=0, N=300]
WORD: %Corr=100.00, Acc=100.00 [H=1875, D=0, S=0, I=0, N=1875]
===================================================================
To fix this, set the ref extensions to "lab" and rec extensions
#!/usr/bin/python
import pynotify
import sys
import requests
import hashlib
import time
while True:
r = requests.get("http://inf-server.inf.uth.gr/courses/CE213/admin/")
ok so adf.ly encodes url and javascript to keep away people/scripts from looking at html source and getting the link, instead of waiting for the link to become available while watching ads.
I googled around for any script that works round this but nothing that was working came up.
So I digged a bit yesterday night, and now, I'm ready to give the solution
<script>
var adflyLink, lnk;
var g_cnt = 0;
var scriptContent = document.getElementsByTagName('head')[0].innerHTML;