Identify natural language propositions in a written argument.
Project description
Syllogio Identify Propositions
Identify natural language propositions in a written argument.
Installation
-
Install pip package.
pip install syllogio-identifyPropositions
-
Install spacy module (Tested with "en_core_web_sm").
python -m spacy download <model name>
-
OPTIONAL: Add model name to configuration.
; setup.cfg [syllogio-identifyPropositions] model_name = <model name> ; defaults to "en_core_web_sm"
Usage
Command line
Usage:
Usage: idpr [options] INPUT
Options:
-m <model> --model <model> Specify a spaCy model. Defaults to "en_core_web_sm".
-V --version Print version and exit.
-h --help Show this message.
Example:
> idpr "All men are mortal. Socrates is a man. Therefore, Socrates is mortal."
[
"All men are mortal",
"Socrates is a man",
"Therefore, Socrates is mortal"
]
Programmatic
from identifyPropositions import identify
propositions = identify("All men are mortal. Socrates is a man. Therefore, Socrates is mortal.")
# propositions will be:
# [
# "All men are mortal",
# "Socrates is a man",
# "Therefore, Socrates is mortal"
# ]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for syllogio-identifyPropositions-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d3098549a9a3e491ee50b041994a874156210962844aa1c032a40477beda5f |
|
MD5 | e58f5ca855b262d515d28ff21e495f33 |
|
BLAKE2b-256 | 197108b1917ddf6fcfab83fadfc6564eb406ab0cc5ddfe6558a026b1b1a8e5f5 |
Close
Hashes for syllogio_identifyPropositions-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 575d73f855d7c614f017154a33f793b31e6d7e95dda1f56281cc394eac065e81 |
|
MD5 | 42fd043e779c16ee39339bed894d924e |
|
BLAKE2b-256 | dca51d8bbdc097feddd2a4663b5ade83ce0922195baf9dc9db2326c65d869c1c |