Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed Mar 18, 2020
2 parents 9ae64ec + 6b3050c commit d41f3b4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion examples/text/CoNLL2002_Dutch-BiLSTM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@
"learner.plot('lr')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"As shown below, our model achieves an F1-Sccore of 74.30. While this is lower than our NER results for other languages like [English, Chinese, and Russian](https://nbviewer.jupyter.org/github/amaiya/ktrain/blob/master/examples/text/shallownlp-examples.ipynb), it appears to be higher than the [Spacy Dutch NER model](https://spacy.io/models/nl)."
]
},
{
"cell_type": "code",
"execution_count": 14,
Expand Down Expand Up @@ -257,6 +264,13 @@
"predictor.save('/tmp/my_dutch_nermodel')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"As of v0.11.0 of *ktrain*, saved NER predictors can also be used with the [shallownlp NER](https://nbviewer.jupyter.org/github/amaiya/ktrain/blob/master/examples/text/shallownlp-examples.ipynb) class to make predictions on new sentences."
]
},
{
"cell_type": "code",
"execution_count": 28,
Expand All @@ -283,7 +297,7 @@
}
],
"source": [
"ner.predict(dutch_text)"
"ner.predict(dutch_text, merge_tokens=True)"
]
}
],
Expand Down

0 comments on commit d41f3b4

Please sign in to comment.