A study on Word Sense Disambiguation for lexical-semantic error correction in Speech Recognition. Final thesis for the Master's Degree in Computer Science @ Sapienza University of Rome
0
stars
67
commits
Jupyter Notebook
primary language
Nov 11, 2022
updated
from tagging import generate_librispeech_predictions
generate_librispeech_predictions("facebook/wav2vec2-base-960h")
python tagging.py preprocess --model-name wav2vec2-base-960h-4-gram --librispeech
git clone https://github.com/SapienzaNLP/esc.git && cd esc && bash setup.sh
PYTHONPATH=$(pwd) python esc/predict.py \
--ckpt <escher_checkpoint.ckpt> \
--dataset-paths ../data/predictions/wav2vec2-base-960h-4-gram-librispeech_test_all.data.xml \
--prediction-types probabilistic
python ngram.py --wsd-dataset-paths ../data/WSD_huge_corpus/ --ngram-size 4 --binary
Where the dataset-paths you provide to the model can be either:
labels key containing a list of BabelNet identifierspython tagging.py scores \
--wsd-dataset-path ../data/predictions/wav2vec2-base-960h-4-gram-librispeech_test_all.data.xml \
--wsd-labels-path ../esc/predictions/wav2vec2-base-960h-4-gram-librispeech_test_all_predictions.txt \
--ngram-model-path ../models/ngrams/4gram.arpa \
--pmi-attrs-path ../models/pmi/pmi.json
67 commits
Jupyter Notebook
99.1%
A study on Word Sense Disambiguation for lexical-semantic error correction in Speech Recognition. Final thesis for the Master's Degree in Computer Science @ Sapienza University of Rome
0
stars
67
commits
Jupyter Notebook
primary language
Nov 11, 2022
updated
from tagging import generate_librispeech_predictions
generate_librispeech_predictions("facebook/wav2vec2-base-960h")
python tagging.py preprocess --model-name wav2vec2-base-960h-4-gram --librispeech
git clone https://github.com/SapienzaNLP/esc.git && cd esc && bash setup.sh
PYTHONPATH=$(pwd) python esc/predict.py \
--ckpt <escher_checkpoint.ckpt> \
--dataset-paths ../data/predictions/wav2vec2-base-960h-4-gram-librispeech_test_all.data.xml \
--prediction-types probabilistic
python ngram.py --wsd-dataset-paths ../data/WSD_huge_corpus/ --ngram-size 4 --binary
Where the dataset-paths you provide to the model can be either:
labels key containing a list of BabelNet identifierspython tagging.py scores \
--wsd-dataset-path ../data/predictions/wav2vec2-base-960h-4-gram-librispeech_test_all.data.xml \
--wsd-labels-path ../esc/predictions/wav2vec2-base-960h-4-gram-librispeech_test_all_predictions.txt \
--ngram-model-path ../models/ngrams/4gram.arpa \
--pmi-attrs-path ../models/pmi/pmi.json
67 commits
Jupyter Notebook
99.1%