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

Commit 69cc0c6

Browse files
JiesiZhao077facebook-github-bot
authored andcommitted
Remove "pytext/" from paths in demo json config (#878)
Summary: ## Motivation and Context This addresses issue#364. Fix the paths in `docnn.json` file so you can follow the tutorial to train your first model. Also updated corresponding doc and the command to test model in README. ## How Has This Been Tested Follow the "train_your_first_model" tutorial. ## Types of changes - [x] Docs change / refactoring / dependency upgrade - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist - [ ] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [x] I have updated the documentation accordingly. - [ ] I have read the **CONTRIBUTING** document. - [ ] I have completed my CLA (see **CONTRIBUTING**) - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed. Pull Request resolved: #878 Reviewed By: Titousensei Differential Revision: D16692041 Pulled By: JiesiZhao077 fbshipit-source-id: f444d0d2b4bd9d94bbb22d9b2ffe66762452feaa
1 parent 5325125 commit 69cc0c6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Now you can export your model as a caffe2 net:
5454
You can use the exported caffe2 model to predict the class of raw utterances like this:
5555

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

6060
More examples and tutorials can be found in [Full Documentation](https://pytext.readthedocs.io/en/master/).

demo/configs/docnn.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"source": {
77
"TSVDataSource": {
88
"field_names": ["label", "slots", "text"],
9-
"train_filename": "pytext/tests/data/train_data_tiny.tsv",
10-
"test_filename": "pytext/tests/data/test_data_tiny.tsv",
11-
"eval_filename": "pytext/tests/data/test_data_tiny.tsv"
9+
"train_filename": "tests/data/train_data_tiny.tsv",
10+
"test_filename": "tests/data/test_data_tiny.tsv",
11+
"eval_filename": "tests/data/test_data_tiny.tsv"
1212
}
1313
}
1414
},

pytext/docs/source/train_your_first_model.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ To get our feet wet, let's run one of the demo configurations included with PyTe
7373
"source": {
7474
"TSVDataSource": {
7575
"field_names": ["label", "slots", "text"],
76-
"train_filename": "pytext/tests/data/train_data_tiny.tsv",
77-
"test_filename": "pytext/tests/data/test_data_tiny.tsv",
78-
"eval_filename": "pytext/tests/data/test_data_tiny.tsv"
76+
"train_filename": "tests/data/train_data_tiny.tsv",
77+
"test_filename": "tests/data/test_data_tiny.tsv",
78+
"eval_filename": "tests/data/test_data_tiny.tsv"
7979
}
8080
}
8181
},

0 commit comments

Comments
 (0)