Skip to main content

Identify natural language propositions in a written argument.

Project description

Syllogio Identify Propositions

Identify natural language propositions in a written argument.

Installation

  1. Install pip package.

    pip install syllogio-identifyPropositions
    
  2. Install spacy module (Tested with "en_core_web_sm").

    python -m spacy download <model name>
    
  3. 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.

Files for syllogio-identifyPropositions, version 3.0.1
Filename, size File type Python version Upload date Hashes
Filename, size syllogio-identifyPropositions-3.0.1.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page