Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Remove "pytext/" from paths in demo json config #878

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Now you can export your model as a caffe2 net:
You can use the exported caffe2 model to predict the class of raw utterances like this:

```
(venv) $ pytext --config-file demo/configs/docnn.json predict <<< '{"raw_text": "create an alarm for 1:30 pm"}'
(venv) $ pytext --config-file demo/configs/docnn.json predict <<< '{"text": "create an alarm for 1:30 pm"}'
```

More examples and tutorials can be found in [Full Documentation](https://pytext.readthedocs.io/en/master/).
Expand Down
6 changes: 3 additions & 3 deletions demo/configs/docnn.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"source": {
"TSVDataSource": {
"field_names": ["label", "slots", "text"],
"train_filename": "pytext/tests/data/train_data_tiny.tsv",
"test_filename": "pytext/tests/data/test_data_tiny.tsv",
"eval_filename": "pytext/tests/data/test_data_tiny.tsv"
"train_filename": "tests/data/train_data_tiny.tsv",
"test_filename": "tests/data/test_data_tiny.tsv",
"eval_filename": "tests/data/test_data_tiny.tsv"
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions pytext/docs/source/train_your_first_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ To get our feet wet, let's run one of the demo configurations included with PyTe
"source": {
"TSVDataSource": {
"field_names": ["label", "slots", "text"],
"train_filename": "pytext/tests/data/train_data_tiny.tsv",
"test_filename": "pytext/tests/data/test_data_tiny.tsv",
"eval_filename": "pytext/tests/data/test_data_tiny.tsv"
"train_filename": "tests/data/train_data_tiny.tsv",
"test_filename": "tests/data/test_data_tiny.tsv",
"eval_filename": "tests/data/test_data_tiny.tsv"
}
}
},
Expand Down