diff --git a/README.md b/README.md index c1c5efa9de4d17c9fb06e025b8f8edcfc17251e4..03a04dfdebe127c3ef20f5ab430598958c864f97 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>