From 79f2c4a13be86c45cbf7f33af0a99fa63612d66c Mon Sep 17 00:00:00 2001 From: Fize Jacques <jacques.fize@cirad.fr> Date: Fri, 1 Mar 2019 11:41:57 +0100 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index c1c5efa..03a04df 100644 --- a/README.md +++ b/README.md @@ -21,23 +21,18 @@ To make it works, clone this repository using : git clone <repoAdress> -Then compile the project by using this command : +Then install using the following command : - javac -cp .:JarBioTexExterne.jar:commons-io-2.5.jar Principal.java + (sudo) pip3 install . -Then create the necessary jar with this command : - jar cvfm Biotex.jar Manifest.txt Principal.class JarBioTexExterne.jar commons-io-2.5.jar +# Example -# Running +```python +from biotex import BiotexWrapper +wrapper = BiotexWrapper(lang="fr") +corpus= [Load your corpus here] +wrapper.create_corpus_from_txt(corpus) +terminology = wrap.extract_terminology("output.txt") +``` -## Python - -In Python, either you import the library and import the ’BiotexWrapper’ class or using this command : - - python3 BiotexWrapper.py <input> [-d:debug] [-o:specify output filename] [-s:gramSize selected (ALL to get all gramSize)] - -## Java -Modify the configuration file 'configuration.txt' and change the value if needed (especially treetagger src). Then use : - - java -jar Biotex.jar <input> <outputDir> -- GitLab