Skip to main content

PyPI status PyPI version PyPI pyversions Build Status Coverage Status Code style

kiara plugin: (language_processing)

Language-processing kiara modules and data types.

Description

TODO

Development

Requirements

  • Python (version >= 3.8)
  • pip, virtualenv
  • git
  • make (on Linux / Mac OS X -- optional)

Prepare development environment

If you only want to work on the modules, and not the core Kiara codebase, follow the instructions below. Otherwise, please check the notes on how to setup a Kiara development environment under (TODO).

Linux & Mac OS X (using make)

For *NIX-like operating system, setting up a development environment is relatively easy:

git clone https://github.com/DHARPA-Project/kiara_plugin.language_processing.git
cd kiara_plugin.language_processing
python3 -m venv .venv
source .venv/bin/activate
make init

Windows (or manual pip install)

It's impossible to lay out all the ways Python can be installed on a machine, and virtual- (or conda-)envs can be created, so I'll assume you know how to do this. One simple way is to install the Anaconda (individual edition), then use the Anaconda navigator to create a new environment, install the 'git' package in it (if your system does not already have it), and use the 'Open Terminal' option of that environment to start up a terminal that has that virtual-/conda-environment activated.

Once that is done, cd into a directory where you want this project folder to live, and do:

# make sure your virtual env is activated!!!
git clone https://github.com/DHARPA-Project/kiara_plugin.language_processing.git
cd kiara_plugin.language_processing
pip install --extra-index-url https://pypi.fury.io/dharpa/ -U -e .[all_dev]

Try it out

After this is done, you should be able to run the included example module via:

kiara run language_processing_example text_1="xxx" text_2="yyy"
...
...

Re-activate the development environment

The 'prepare' step from above only has to be done once. After that, to re-enable your virtual environment, you'll need to navigate to the directory again (wherever that is, in your case), and run the source command from before again:

cd path/to/kiara_plugin.language_processing
source .venv/bin/activate  # if it isn't activated already, for example by the Anaconda navigator
kiara --help  # or whatever, point is, kiara should be available for you now,

make targets (Linux & Mac OS X)

  • init: init development project (install project & dev dependencies into virtualenv, as well as pre-commit git hook)
  • update-dependencies: update development dependencies (mainly the core kiara package from git)
  • flake: run flake8 tests
  • mypy: run mypy tests
  • test: run unit tests
  • docs: create static documentation pages (under build/site)
  • serve-docs: serve documentation pages (incl. auto-reload) for getting direct feedback when working on documentation
  • clean: clean build directories

For details (and other, minor targets), check the Makefile.

Running tests

> make test
# or
> make coverage

This project is MPL v2.0 licensed, for the license text please check the LICENSE file in this repository.

Metadata

Release files for kiara-plugin.language-processing 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kiara-plugin.language-processing 0.5.0
File Size Uploaded
kiara_plugin.language_processing-0.5.0.tar.gz 101.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kiara-plugin.language-processing 0.5.0
File Interpreter ABI Platform
kiara_plugin.language_processing-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 122.7 kB

Release files / kiara_plugin.language_processing-0.5.0.tar.gz

Download URL kiara_plugin.language_processing-0.5.0.tar.gz
Size 101.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3a73d643cd9d26c421810d71cac7f587b48c83df6c79b36748d4fafcf77b5f2a
BLAKE2b-256 checksum
How to use checksums
0ec29419bd0033168733b03b4d575c4bd3fd9172e9be3a6f7fad51f7f21093e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / kiara_plugin.language_processing-0.5.0-py3-none-any.whl

Download URL kiara_plugin.language_processing-0.5.0-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
583a74519e9cd43a6c35ac3827331af39f7a12b359e23313841836c09878e1f7
BLAKE2b-256 checksum
How to use checksums
2266b543c984120ba76db081dccfa38580b7fe3750c41efdc3d7f63715d05b0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.14

2 release files

0.4.13

2 release files

0.4.12

2 release files

0.4.11

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page