You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by sm...@apache.org on 2019/03/03 19:47:45 UTC

[opennlp-sandbox] 01/01: Added code to randomly drop a character while training

This is an automated email from the ASF dual-hosted git repository.

smarthi pushed a commit to branch tf-nec-sundry
in repository https://gitbox.apache.org/repos/asf/opennlp-sandbox.git

commit 2411194db3b972e69b0ae189b2b5eeb2ebc5a2d9
Author: Suneel Marthi <sm...@apache.org>
AuthorDate: Sun Mar 3 20:46:00 2019 +0100

    Added code to randomly drop a character while training
---
 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 5ff0dfb..18b5d5f 100644
--- a/tf-ner-poc/src/main/python/namecat/namecat.py
+++ b/tf-ner-poc/src/main/python/namecat/namecat.py
@@ -163,7 +163,7 @@ def main():
         sess.run(init)
 
         batch_size = 20
-        for epoch in range(10):
+        for epoch in range(20):
             print("Epoch " + str(epoch))
             acc_train = []