Commit
·
0caedb7
1
Parent(s):
78aec29
Create README.md
Browse files
README.md
CHANGED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Model Overview
|
2 |
+
|
3 |
+
This model is a Morse Code recognition model. It was trained with the package at https://github.com/1-800-BAD-CODE/MorseCodeToolkit.
|
4 |
+
|
5 |
+
For inference, only the base NeMo package needs to be installed because this is just an ASR model trained to decode Morse code signals rather than speech signals.
|
6 |
+
|
7 |
+
## How to Use this Model
|
8 |
+
With NeMo is installed, this model can be used to run inference on Morse code audio files.
|
9 |
+
|
10 |
+
### Automatically instantiate the model
|
11 |
+
|
12 |
+
```python
|
13 |
+
import nemo.collections.asr as nemo_asr
|
14 |
+
|
15 |
+
asr_model = nemo_asr.models.ASRModel.from_pretrained("1-800-BAD-CODE/morsecode_en_quartznet_10x5")
|
16 |
+
```
|
17 |
+
|
18 |
+
### Transcribing using Python
|
19 |
+
First, let's download an example Morse code audio file from Wikipedia:
|
20 |
+
|
21 |
+
```
|
22 |
+
wget https://upload.wikimedia.org/wikipedia/commons/0/04/Wikipedia-Morse.ogg
|
23 |
+
```
|
24 |
+
|
25 |
+
Then simply do:
|
26 |
+
```
|
27 |
+
asr_model.transcribe(['Wikipedia-Morse.ogg'])
|
28 |
+
['WELCOME TO WIKIPEDIA, THE FREE ENCYCLOPEDIA THAT ANYONE CAN EDIT.']
|
29 |
+
```
|
30 |
+
|
31 |
+
## Limitations
|
32 |
+
This model was trained on synthetic Morse code data generated by https://github.com/1-800-BAD-CODE/MorseCodeToolkit. Any Morse code generated with parameters outside of the range of the parameters used to generate the training data will not be well recognized by the model.
|