Skip to main content

Rule-based Idea Unit segmentation algorithm for the English language.

Project description

IUExtract

Rule-based Idea Unit segmentation algorithm for the English language.

Installation

First of all, you need to install the dependencies:

pip install spacy
python -m spacy download en_core_web_lg

To install the package with the command line tool install pipx and run the following command:

pipx install iuextract --python 3.9

Note: on first run, the program will download the Spacy model en_core_web_lg. This could take some time. A custom Spacy model can be selected when importing the module into your python projects.

If you only wish to use the package in your python projects you can install without executable via

pip install iuextract

Command Line Interface (CLI) Usage

Once installed via pipx, you can run iuextract via

iuextract -i input_file.txt 

to segment file.txt into Idea Units. The segmented file will be printed on the console as standard output. You can specify an output file with the -o parameter.

iuextract -i input_file.txt -o output_file.txt

For more options you can call the help argument.

iuextract -h

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

iuextract-1.0.5.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

IUExtract-1.0.5-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file iuextract-1.0.5.tar.gz.

File metadata

  • Download URL: iuextract-1.0.5.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.13

File hashes

Hashes for iuextract-1.0.5.tar.gz
Algorithm Hash digest
SHA256 3d3d739df912ba62f3e8861f97ce07232eb662841b6999f8c8b9fdb478644354
MD5 1deaced9c499455a0a3f4ec81ed1c245
BLAKE2b-256 9722559a5b7d8b06cfbcd2209a94da2feb45b9287163249cf10ad6937d4bc42e

See more details on using hashes here.

File details

Details for the file IUExtract-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: IUExtract-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.13

File hashes

Hashes for IUExtract-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7541326115c1dc699fbc75d0a27ac65fc83354aa8b9cbf8592bcc88fab3a0e20
MD5 90c6bcf7252402e0632fa1db1f3d1ead
BLAKE2b-256 432fc0feb9bfc34294369ead0dfb2f53b050ea16e60d0ce448ee01fd3e9c2f8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page