Skip to content
Browse files

Implemented stop to shutdown annotation pipeline

  • Loading branch information...
1 parent e244cf9 commit f98c3beb90f63787a3a34b8cc985537b271617bf @jonnywray committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/main/java/com/jonnywray/vertx/corenlp/Annotator.java
View
5 src/main/java/com/jonnywray/vertx/corenlp/Annotator.java
@@ -62,6 +62,11 @@ public void start() {
}
}
+ @Override
+ public void stop(){
+ StanfordCoreNLP.clearAnnotatorPool();
+ }
+
public void handle(Message<JsonObject> message) {
String action = message.body().getString("action");
if (action == null) {

0 comments on commit f98c3be

Please sign in to comment.
Something went wrong with that request. Please try again.