From f44f331c98339cf7a0f6986c5e2b2126ba18d389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Lamercerie?= <aurelien.lamercerie@tetras-libre.fr> Date: Wed, 8 Feb 2023 09:16:50 +0000 Subject: [PATCH] Update ReadMe --- README.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 94804168..9704b8a7 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. -- GitLab