diff --git a/README.md b/README.md index 94804168cc1a709149bb63114443646ca657a06e..9704b8a7a1417f3a8a038835864cce5fbca0f852 100644 --- a/README.md +++ b/README.md @@ -22,19 +22,21 @@ Two main methods are proposed to create an ontology from a file in amrlib format The following code can be used to create an ontology from an AMR-Lib file: -import tenet -factoids = tenet.create_ontology_from_amrld_file(amrld_file_path, - onto_prefix=<onto_prefix>, - out_file_path=<out_file_path>, - technical_dir_path=<technical_dir_path>) +> import tenet +> +> factoids = tenet.create_ontology_from_amrld_file(amrld_file_path, +> onto_prefix=<onto_prefix>, +> out_file_path=<out_file_path>, +> technical_dir_path=<technical_dir_path>) The following code can be used to create an ontology from an AMR-Lib directory: -import tenet -factoids = tenet.create_ontology_from_amrld_dir(amrld_dir_path, - onto_prefix=<onto_prefix>, - out_file_path=<out_file_path>, - technical_dir_path=<technical_dir_path>) +> import tenet +> +> factoids = tenet.create_ontology_from_amrld_dir(amrld_dir_path, +> onto_prefix=<onto_prefix>, +> out_file_path=<out_file_path>, +> technical_dir_path=<technical_dir_path>) For more details on these methods, see the code in **tenet/main.py**. @@ -46,6 +48,6 @@ The addition of core methods for supporting UNL graphs is also planned. While wa ## 4 - Content -The library groups several packages in the tenet subdirectory. The main methods are defined in the main module (**main.py**). The **extract.py** file has also been developed for command line use (**>> python3 extract.py --source_corpus <input-data>**). The configuration of the library can be adapted by modifying the logging.conf file. +The library groups several packages in the tenet subdirectory. The main methods are defined in the main module (**main.py**). The **extract.py** file has also been developed for command line use (**>> python3 extract.py --source_corpus _input-data_**). The configuration of the library can be adapted by modifying the logging.conf file.