Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[Example]update NER example readme on module prediction #13184

Merged
merged 5 commits into from
Nov 17, 2018
Merged
Changes from 1 commit
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
9 changes: 8 additions & 1 deletion example/named_entity_recognition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ To reproduce the preprocessed training data:

To train the model:

- `$ cd src && python ner.py`
- `$ cd src && python ner.py`

To inference using trained model:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To inference using trained model:
To run inference using trained model:


1. Re-create the bucketing module using `sym_gen` defined in `ner.py`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Re-create the bucketing module using `sym_gen` defined in `ner.py`
1. Recreate the bucketing module using `sym_gen` as defined in `ner.py`

2. Loading saved parameters using `module.set_params()`

Refere to [Bucketing Module example](https://github.com/apache/incubator-mxnet/blob/e9a590fa6554231fba404dad08acee5cd3e786a8/example/rnn/bucketing/cudnn_rnn_bucketing.py#L167) and this [issue](https://github.com/apache/incubator-mxnet/issues/5008) on Bucketing Module Prediction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit : Typo in 'Refere'.