Comments (2)
Hi,
Maybe you can update the field name token_text
to text
in the json files, and then remove the arg --bpe sentencepiece --sentencepiece-model ${sentencepiece_model}.model
passed to train.py. This will take the text as it-is without any v sentencepiece encoding process.
Alternatively I think you can define your own bpe class similar to https://github.com/freewym/espresso/blob/master/fairseq/data/encoders/sentencepiece_bpe.py, to take your additional tags into consideration. and pass the arg --bpe <your-bpe-name>
to train.py
edit: there is a later commit 4c86e23 doing on-the-fly tokenization, where token_text is totally removed from the code. If you are using the version after that, I see where your confusion is from
from espresso.
Thank you,
By renaming token_text
to text
, and removing the --bpe
argument, fairseq dit not complain, and I achieved to train my model.
Now, I'm just having trouble when decoding, as there is no difference between the WER and the CER metric (decoded_char_results and decoded_results are the same). I think creating my own tokeniser/bpe class should work, I might try that later. Otherwise, I'll look the decoding functions and add some custom code.
from espresso.
Related Issues (20)
- Stream ASR HOT 1
- TypeError: get_asr_dataset_from_json() got an unexpected keyword argument 'combined' HOT 1
- Different WERs when decoding with different batch size (--max-sentences) HOT 5
- ONNX exportation of speech_lstm based model HOT 1
- Build PyChain with CPU HOT 6
- WER difference when decode with different batch size HOT 5
- SpecAug slows down training time HOT 4
- WSJ Recipe: "wsj_data_prep.sh: Spot check of command line arguments failed" HOT 1
- SpecAugment is not used due to a typo in the prefetch_called assignment HOT 1
- Getting OOM error at the middle of the training in asr_swbd recipe on lstm encoder decoder model HOT 4
- How can I find Kaldi directory? HOT 37
- Google Colab research creation HOT 1
- Which is the difference between stage 5 and stage 7 HOT 1
- Error in training stage of run_chain_e2e_bichar.sh: 'odict_items' object is not an iterator HOT 4
- Transformer LM in ASR HOT 2
- 'frame_subsampling_factor' in chain e2e setup HOT 2
- hydra.errors.ConfigCompositionException: Could not override 'task.data'. HOT 1
- Android Espresso not able to test fragement
- SHA hashes in 'main' branch are different from those in the 'origin/main' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espresso.