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
Close
Hashes for syllogio-identifyPropositions-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f4958135c592e76c2da376c1e63ff2e49a92c9711b64f9f115c88536b56cdf0 |
|
MD5 | 8f64c30733fc61c6c2eddfddd9c374f0 |
|
BLAKE2b-256 | b21f12bf6a316ba0ffc65959f029d1a401f63da9732cfd9485c7c0facbcd9b14 |