Skip to content
Snippets Groups Projects
Commit 9570e61b authored by Aurélien Lamercerie's avatar Aurélien Lamercerie
Browse files

Merge remote-tracking branch 'refs/remotes/origin/master'

parents bc914e73 f44f331c
No related branches found
No related tags found
No related merge requests found
......@@ -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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment