This is an automated email from the ASF dual-hosted git repository.
joern pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp-sandbox.git
The following commit(s) were added to refs/heads/master by this push:
new 7fe7436 Fix saving of namecat model
7fe7436 is described below
commit 7fe7436b27c8ed1b8eac421f3f8c75aadf502c37
Author: Jörn Kottmann <[email protected]>
AuthorDate: Fri Feb 15 16:23:07 2019 +0100
Fix saving of namecat model
---
tf-ner-poc/src/main/python/namecat/namecat.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tf-ner-poc/src/main/python/namecat/namecat.py
b/tf-ner-poc/src/main/python/namecat/namecat.py
index 21c56ff..2a6e23f 100644
--- a/tf-ner-poc/src/main/python/namecat/namecat.py
+++ b/tf-ner-poc/src/main/python/namecat/namecat.py
@@ -208,7 +208,7 @@ def main():
with TemporaryDirectory() as temp_dir:
temp_model_dir = temp_dir + "/model"
- builder =
tf.saved_model.builder.SavedModelBuilder("./namecat_model" + str(epoch))
+ builder = tf.saved_model.builder.SavedModelBuilder(temp_model_dir)
builder.add_meta_graph_and_variables(sess,
[tf.saved_model.tag_constants.SERVING])
builder.save()