Update CLI usage
Browse files
README.md
CHANGED
|
@@ -51,8 +51,8 @@ Install the [X-MDD code](https://github.com/oshindow/whisper_pinyin) (`xmdd` pac
|
|
| 51 |
```bash
|
| 52 |
hf download walston/X-MDD --local-dir pretrained/X-MDD
|
| 53 |
python -m xmdd.infer --model-dir pretrained/X-MDD --language en \
|
| 54 |
-
--manifest my_en_test.jsonl --
|
| 55 |
-
--
|
| 56 |
```
|
| 57 |
|
| 58 |
```python
|
|
@@ -62,8 +62,7 @@ queries = load_manifest("my_en_test.jsonl", "en", model.cfg)
|
|
| 62 |
print(model.predict(queries[0], select_demos(queries[0], queries, shots=4)))
|
| 63 |
```
|
| 64 |
|
| 65 |
-
For
|
| 66 |
-
`--language-name` for a language other than zh/en/ar). The base `Qwen/Qwen3-ASR-1.7B-hf` is downloaded for
|
| 67 |
the architecture and then overwritten by these weights.
|
| 68 |
|
| 69 |
Input manifest rows (JSONL) look like:
|
|
|
|
| 51 |
```bash
|
| 52 |
hf download walston/X-MDD --local-dir pretrained/X-MDD
|
| 53 |
python -m xmdd.infer --model-dir pretrained/X-MDD --language en \
|
| 54 |
+
--manifest my_en_test.jsonl --support-manifest my_en_test.jsonl \
|
| 55 |
+
--constrain-phones my_en_phones.txt --shots 4 --out-dir results/en
|
| 56 |
```
|
| 57 |
|
| 58 |
```python
|
|
|
|
| 62 |
print(model.predict(queries[0], select_demos(queries[0], queries, shots=4)))
|
| 63 |
```
|
| 64 |
|
| 65 |
+
For a language other than zh/en/ar also pass `--language-name`. The base `Qwen/Qwen3-ASR-1.7B-hf` is downloaded for
|
|
|
|
| 66 |
the architecture and then overwritten by these weights.
|
| 67 |
|
| 68 |
Input manifest rows (JSONL) look like:
|