docs: simplify C++ usage with explicit -m/-t params
Browse files
README.md
CHANGED
|
@@ -33,14 +33,8 @@ Based on [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx) punct CT Transform
|
|
| 33 |
## Quick Start
|
| 34 |
|
| 35 |
```bash
|
| 36 |
-
# Clone this repo
|
| 37 |
git clone https://huggingface.co/AXERA-TECH/punc-ct-transformer
|
| 38 |
cd punc-ct-transformer
|
| 39 |
-
|
| 40 |
-
# Setup model symlinks for C++ demo
|
| 41 |
-
mkdir -p models
|
| 42 |
-
ln -sf ../model.axmodel models/model.axmodel
|
| 43 |
-
ln -sf ../tokens.json models/tokens.json
|
| 44 |
```
|
| 45 |
|
| 46 |
### Python
|
|
@@ -58,7 +52,7 @@ cd python && python3 example.py
|
|
| 58 |
### C++
|
| 59 |
|
| 60 |
```bash
|
| 61 |
-
cd cpp && ./demo
|
| 62 |
```
|
| 63 |
|
| 64 |
### Python SDK API
|
|
@@ -87,7 +81,6 @@ print(result) # 你好吗?how are you我很好,谢谢。
|
|
| 87 |
.
|
| 88 |
├── model.axmodel # Compiled AXMODEL for AX650 NPU
|
| 89 |
├── tokens.json # Vocabulary (272,727 tokens)
|
| 90 |
-
├── models/ -> symlinks # Symlinks for C++ demo defaults
|
| 91 |
├── python/
|
| 92 |
│ ├── example.py # Demo script (run from python/ dir)
|
| 93 |
│ ├── requirements.txt # Python dependencies
|
|
|
|
| 33 |
## Quick Start
|
| 34 |
|
| 35 |
```bash
|
|
|
|
| 36 |
git clone https://huggingface.co/AXERA-TECH/punc-ct-transformer
|
| 37 |
cd punc-ct-transformer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
```
|
| 39 |
|
| 40 |
### Python
|
|
|
|
| 52 |
### C++
|
| 53 |
|
| 54 |
```bash
|
| 55 |
+
cd cpp && ./demo -m ../model.axmodel -t ../tokens.json
|
| 56 |
```
|
| 57 |
|
| 58 |
### Python SDK API
|
|
|
|
| 81 |
.
|
| 82 |
├── model.axmodel # Compiled AXMODEL for AX650 NPU
|
| 83 |
├── tokens.json # Vocabulary (272,727 tokens)
|
|
|
|
| 84 |
├── python/
|
| 85 |
│ ├── example.py # Demo script (run from python/ dir)
|
| 86 |
│ ├── requirements.txt # Python dependencies
|