This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
timer = setInterval(function() { | |
frame = document.querySelector('#chatframe') | |
if(frame !== null){ | |
contents = document.querySelector('#chatframe').contentDocument.querySelector('div#contents.style-scope.yt-live-chat-app') | |
chats = document.querySelector('#chatframe').contentDocument.querySelector('div#items.style-scope.yt-live-chat-item-list-renderer') | |
chats_scroller = document.querySelector('#chatframe').contentDocument.querySelector('#item-scroller') | |
if(contents !== null && chats !== null){ | |
console.log("start") | |
clearInterval(timer) | |
modelatorChats = document.createElement('div') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# how to use: | |
# chmod +x ./calc_wer.sh | |
# ./calc_wer.sh A.txt B.txt | |
# needed: pip, mecab, asr-evaluation | |
# install example: | |
# sudo apt install mecab libmecab-dev mecab-ipadic-utf8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#たぶんもともと入ってない | |
sudo apt install nkf jq |
NewerOlder