From 60c490794ef85238bac3f790923220bd7d3827ae Mon Sep 17 00:00:00 2001 From: Emmanouil Theofanis Chourdakis Date: Fri, 8 Jan 2021 20:14:42 +0200 Subject: [PATCH] fixed example on how to run minie through python --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 58c0355..a879dca 100644 --- a/README.md +++ b/README.md @@ -59,11 +59,13 @@ And install: Then you can write a script like the following: ``` +import os +os.environ['CLASSPATH'] = "path/to/minie.jar" + from miniepy import * -jar_file = "path/to/minie.jar" # Instantiate minie -minie = MinIE(jar_file) +minie = MinIE() # Sentence to extract triples from sentence = "The Joker believes that the hero Batman was not actually born in foggy Gotham City."