CLI.relations.relation_extractor¶
About:¶
The relation_extractor command is designed to extract events and their corresponding arguments (agents, locations, and dates) within a text using the SinaTools relation_extractor API.
Usage:¶
Below is the usage information that can be generated by running relation_extractor --help.
relation_extractor --text=TEXT [OPTIONS]
relation_extractor --file=FILE [OPTIONS]
Options:¶
--text TEXT
The text from which events need to be extracted.
--file FILE
File containing the text from which events need to be extracted.
Examples:¶
relation_extractor --text "Your Arabic text here"
relation_extractor --file "path/to/your/file.txt"