Skip to main content

Wowool NLP Toolkit

Project description

The Wowool NLP Toolkit

install

Install the main sdk.

pip install wowool-sdk

Installing languages.

pip install wowool-[language]

Quick Start

Just create a document and pipeline, pass your document trough the Pipeline, and your done.

from wowool.sdk import Pipeline
from wowool.document import Document

document = Document("Mark Van Den Berg works at Omega Pharma.")
# Create an analyzer for a given language and options
process = Pipeline("english,entity")
# Process the data
document = process(document)
print(document)

API

Examples

You will need to install the english language module to run the sample. pip install wowool-english

Extract dutch entities

This script demonstrates how to perform basic entity analysis on a Dutch sentence using the Wowool SDK.

Install first the dutch language model pip install wowool-dutch

from wowool.sdk import Pipeline
from wowool.document import Document

entities = Pipeline("dutch,entity")
document = entities(Document("Mark Van Den Berg werkte als hoofdarts bij Omega Pharma."))
for sentence in document.sentences:
    for entity in sentence.entities:
        print(entity)

Custom domain

The script identifies the word "car" as a Vehicle entity in the sentence "I have a car." using custom domain rules and language processing.

For more info on how to write rules see: https://www.wowool.com/docs/nlp/matching-&-capturing

from wowool.sdk import Language, Domain
from wowool.document import Document

english = Language("english")
vehicle = Domain(source="rule:{ 'car'} = Vehicle;")
doc = vehicle(english(Document("I have a car.")))
for entity in doc.entities:
    print(entity)

Using the language identifier

This script demonstrates how to use the LanguageIdentifier from the wowool.sdk package to detect the language of a text document.

from wowool.sdk import LanguageIdentifier

document = """
La juventud no es más que un estado de ánimo.

Record de chaleur battu dans une cinquantaine de villes en France

"""
# Initialize a language identification engine
lid = LanguageIdentifier()
# Process the data
doc = lid(document)
print(doc.language)

License

In both cases you will need to acquirer a license file at https://www.wowool.com

Non-Commercial

This library is licensed under the GNU AGPLv3 for non-commercial use.  
For commercial use, a separate license must be purchased.  

Commercial license Terms

1. Grants the right to use this library in proprietary software.  
2. Requires a valid license key  
3. Redistribution in SaaS requires a commercial license.  

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

wowool_sdk-3.4.0.tar.gz (74.1 kB view details)

Uploaded Source

Built Distributions

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

wowool_sdk-3.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (40.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

wowool_sdk-3.4.0-cp313-cp313-macosx_11_0_arm64.whl (65.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

wowool_sdk-3.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (40.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

wowool_sdk-3.4.0-cp312-cp312-macosx_15_0_arm64.whl (35.1 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

wowool_sdk-3.4.0-cp312-cp312-macosx_11_0_arm64.whl (65.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

wowool_sdk-3.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (40.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

File details

Details for the file wowool_sdk-3.4.0.tar.gz.

File metadata

  • Download URL: wowool_sdk-3.4.0.tar.gz
  • Upload date:
  • Size: 74.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for wowool_sdk-3.4.0.tar.gz
Algorithm Hash digest
SHA256 e68f100c61cbbf8da7b4e05c2b2136af6d50d593587df579141616800a05d856
MD5 3aaba6f60afaded984660e22fbac84a3
BLAKE2b-256 df46a423a19caf1b897fbe10644d07bd12bd14417683664dda382b62a64f36ae

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 59a50f1ace480193cdc0269ddac04e8694bed98e8d4267a894e1d8ef6433301a
MD5 92e788183ce1b49cd9d429f677f41753
BLAKE2b-256 c780d803b4564ef310ffe1ba38ff1b63218dc4227e4466952f00c11cd4d34bdb

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1093a3666815bfc82f723d860db2538f6e3d764323001875d854052f536a198a
MD5 fb56882af5e4eabffec9639e46ec87bc
BLAKE2b-256 41cb9daf6da1b163a57dab3b6ecb17e8c881dfddd29ed1b17a1817d3d54f85ab

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e2fae105e77fb2473b2107bf79a649d0a364bcb911bc8e78ac35cfa76af96b4a
MD5 2dfb206fca89c3c5272c7bcac24fb779
BLAKE2b-256 476ada82add61ee2157dd52cbdf12fad28705b2eb58458ffffe251567df58a9d

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.4.0-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.4.0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3e54e6b4444307d31ea6456ac2f84f53f1c692336bc43872bc44d23fc8e10d23
MD5 3b72620b31b4024c645d87da2944ceb7
BLAKE2b-256 69e52936bfd82ab31cbb206ec7e9029f9ca2a5a90b4596c0d528b216001f9f8f

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.4.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b604ee8d0c718884cf0d3d3545f039b4d0e21c24c0b82ac2e6fe3da985d00767
MD5 91dc625d6434c25b0c63cd586d530b91
BLAKE2b-256 1a6ae0b9e1ae060e0c9e2c8d272d51a3ef8cacf88517560f99dbdd26895584d4

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2c6e488bb71a1dcbc53abef8446dee611783701dcc41227d28786a2898faabf9
MD5 552cdcf863e6cca24abe3b014e02a0d4
BLAKE2b-256 71f37e91d314d6d7788d7239f762d9fa65e8307053918b0d7d8f2c86e0160ac0

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