From 51d0c8f034e9e57a2be10aad895ee6fdb72c437f Mon Sep 17 00:00:00 2001 From: Emmanouil Theofanis Chourdakis Date: Sat, 15 Sep 2018 15:07:35 +0100 Subject: [PATCH] Changed enum Mode.SAFE in the Minie construction to int value 2 in order to make it work with pyjnius --- src/main/java/tests/minie/Demo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/tests/minie/Demo.java b/src/main/java/tests/minie/Demo.java index a1fce43..2000132 100644 --- a/src/main/java/tests/minie/Demo.java +++ b/src/main/java/tests/minie/Demo.java @@ -17,8 +17,8 @@ public static void main(String args[]) { // Input sentence String sentence = "The Joker believes that the hero Batman was not actually born in foggy Gotham City."; - // Generate the extractions (With SAFE mode) - MinIE minie = new MinIE(sentence, parser, MinIE.Mode.SAFE); + // Generate the extractions (With SAFE mode (mode = 2) + MinIE minie = new MinIE(sentence, parser, 2); // Print the extractions System.out.println("\nInput sentence: " + sentence);