From b44b9ffbd061548d8044171c22d51cfbf42da154 Mon Sep 17 00:00:00 2001 From: Lai Wei Date: Thu, 8 Nov 2018 08:38:55 -0800 Subject: [PATCH 1/5] update readme on module prediction --- example/named_entity_recognition/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/example/named_entity_recognition/README.md b/example/named_entity_recognition/README.md index 2b28b3b5039b..739fa6721e10 100644 --- a/example/named_entity_recognition/README.md +++ b/example/named_entity_recognition/README.md @@ -15,4 +15,11 @@ To reproduce the preprocessed training data: To train the model: -- `$ cd src && python ner.py` \ No newline at end of file +- `$ cd src && python ner.py` + +To inference using trained model: + +1. Re-create the bucketing module using `sym_gen` 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 \ No newline at end of file From 89b6c3f6bbb67bdb9f94d66292f9f2cb61a2d92a Mon Sep 17 00:00:00 2001 From: Lai Wei Date: Thu, 8 Nov 2018 08:56:57 -0800 Subject: [PATCH 2/5] fix typo --- example/named_entity_recognition/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/named_entity_recognition/README.md b/example/named_entity_recognition/README.md index 739fa6721e10..5ec912a9f994 100644 --- a/example/named_entity_recognition/README.md +++ b/example/named_entity_recognition/README.md @@ -22,4 +22,4 @@ To inference using trained model: 1. Re-create the bucketing module using `sym_gen` 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 \ No newline at end of file +Refer 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 \ No newline at end of file From 428fc1f22eec1eb9af6bd488cdf08652e9f9cd42 Mon Sep 17 00:00:00 2001 From: Lai Wei Date: Thu, 8 Nov 2018 11:20:45 -0800 Subject: [PATCH 3/5] update url --- example/named_entity_recognition/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/named_entity_recognition/README.md b/example/named_entity_recognition/README.md index 5ec912a9f994..abd6f0b2dff8 100644 --- a/example/named_entity_recognition/README.md +++ b/example/named_entity_recognition/README.md @@ -22,4 +22,5 @@ To inference using trained model: 1. Re-create the bucketing module using `sym_gen` defined in `ner.py` 2. Loading saved parameters using `module.set_params()` -Refer 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 \ No newline at end of file +Refer to [Bucketing Module example](https://github.com/apache/incubator-mxnet/blob/master/example/rnn/bucketing/cudnn_rnn_bucketing.py#L167) +and this [issue](https://github.com/apache/incubator-mxnet/issues/5008) on Bucketing Module Prediction \ No newline at end of file From d120d6f1c4a45dfd516acafde6b4b4dc5f1961bb Mon Sep 17 00:00:00 2001 From: Lai Wei Date: Mon, 12 Nov 2018 13:09:13 -0800 Subject: [PATCH 4/5] improve grammar --- example/named_entity_recognition/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/named_entity_recognition/README.md b/example/named_entity_recognition/README.md index abd6f0b2dff8..ae36dc6f1209 100644 --- a/example/named_entity_recognition/README.md +++ b/example/named_entity_recognition/README.md @@ -17,10 +17,10 @@ To train the model: - `$ cd src && python ner.py` -To inference using trained model: +To run inference using trained model: -1. Re-create the bucketing module using `sym_gen` defined in `ner.py` +1. Recreate the bucketing module using `sym_gen` defined in `ner.py` 2. Loading saved parameters using `module.set_params()` -Refer to [Bucketing Module example](https://github.com/apache/incubator-mxnet/blob/master/example/rnn/bucketing/cudnn_rnn_bucketing.py#L167) +Refer to the [Bucketing Module example](https://github.com/apache/incubator-mxnet/blob/master/example/rnn/bucketing/cudnn_rnn_bucketing.py#L167) and this [issue](https://github.com/apache/incubator-mxnet/issues/5008) on Bucketing Module Prediction \ No newline at end of file From e30cc73f6714143bc4104d890f5e9b86bef6e037 Mon Sep 17 00:00:00 2001 From: Lai Wei Date: Wed, 14 Nov 2018 15:24:22 -0800 Subject: [PATCH 5/5] update link --- example/named_entity_recognition/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/named_entity_recognition/README.md b/example/named_entity_recognition/README.md index ae36dc6f1209..c914a6985dfe 100644 --- a/example/named_entity_recognition/README.md +++ b/example/named_entity_recognition/README.md @@ -22,5 +22,5 @@ To run inference using trained model: 1. Recreate the bucketing module using `sym_gen` defined in `ner.py` 2. Loading saved parameters using `module.set_params()` -Refer to the [Bucketing Module example](https://github.com/apache/incubator-mxnet/blob/master/example/rnn/bucketing/cudnn_rnn_bucketing.py#L167) +Refer to the `test` function in the [Bucketing Module example](https://github.com/apache/incubator-mxnet/blob/master/example/rnn/bucketing/cudnn_rnn_bucketing.py) and this [issue](https://github.com/apache/incubator-mxnet/issues/5008) on Bucketing Module Prediction \ No newline at end of file