mirror of
https://github.com/syssec-utd/pylingual.git
synced 2026-05-10 18:39:03 -07:00
Update README.md
This commit is contained in:
@@ -24,7 +24,7 @@ dataset
|
|||||||
The names of the inner directories and files do not matter. Then create the dataset:
|
The names of the inner directories and files do not matter. Then create the dataset:
|
||||||
|
|
||||||
```
|
```
|
||||||
python prepare_dataset.py <path to JSON>
|
uv run prepare_dataset.py <path to JSON>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Segmentation model
|
## Segmentation model
|
||||||
@@ -32,7 +32,7 @@ python prepare_dataset.py <path to JSON>
|
|||||||
Create a segmentation model JSON file based off the sample (`sample_jsons/py36-sample-segmentation.json`). Then train the model:
|
Create a segmentation model JSON file based off the sample (`sample_jsons/py36-sample-segmentation.json`). Then train the model:
|
||||||
|
|
||||||
```
|
```
|
||||||
python train_models.py --segmentation <path to JSON>
|
uv run train_models.py --segmentation <path to JSON>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Statement model
|
## Statement model
|
||||||
@@ -40,7 +40,7 @@ python train_models.py --segmentation <path to JSON>
|
|||||||
Create a statement model JSON file based off the sample (`sample_jsons/py36-sample-statement.json`). Then train the model:
|
Create a statement model JSON file based off the sample (`sample_jsons/py36-sample-statement.json`). Then train the model:
|
||||||
|
|
||||||
```
|
```
|
||||||
python train_models.py --statement <path to JSON>
|
uv run train_models.py --statement <path to JSON>
|
||||||
```
|
```
|
||||||
|
|
||||||
Once models are trained, update `../pylingual/decompiler_config.yaml` or create a separate config file by replacing the old models with the newly trained ones.
|
Once models are trained, update `../pylingual/decompiler_config.yaml` or create a separate config file by replacing the old models with the newly trained ones.
|
||||||
|
|||||||
Reference in New Issue
Block a user