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.2.2.dev3.tar.gz (73.3 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.2.2.dev3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (70.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

wowool_sdk-3.2.2.dev3-cp313-cp313-macosx_11_0_arm64.whl (64.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

wowool_sdk-3.2.2.dev3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (70.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

wowool_sdk-3.2.2.dev3-cp312-cp312-macosx_11_0_arm64.whl (64.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file wowool_sdk-3.2.2.dev3.tar.gz.

File metadata

  • Download URL: wowool_sdk-3.2.2.dev3.tar.gz
  • Upload date:
  • Size: 73.3 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.2.2.dev3.tar.gz
Algorithm Hash digest
SHA256 450f445460961822d9ca2c020a717cc75b0f08264d3704d335a486013152eeb8
MD5 95ffa127ba8d0a0439d33911edbb1a52
BLAKE2b-256 986d5b548bb33053121dcf9fc1e3256c6a86e9e6366c388d4339af1e0128a7fc

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.2.2.dev3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.2.2.dev3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9809c855149cf0e5db2085f3f0f7eabdccae89989f4c636c13429c7dd28e3d78
MD5 36e8a4a9d6f5fbe38dc1e9269da5578d
BLAKE2b-256 a96e386b05b86d2604f726056264b51bf8a98b3b032063c5922c26205e82c442

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.2.2.dev3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.2.2.dev3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75a16e4ded3b4a0c747ca359576f6ed36939648d9861ca06e9a8801c3d522e8e
MD5 143cd33a584c31bc28f52018a439d0f6
BLAKE2b-256 14a0eb94d8f5e2280add60bb4ecdba739e2cc6846636a1cfd8029a9f7ae3ff07

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.2.2.dev3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.2.2.dev3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2140b8c77211a1d85e7c99d1922efa8e1d5f80d2b800ea7ce7e79b7bd1e7ac8f
MD5 8ee995f04c29d065a22e012684650769
BLAKE2b-256 2da6d7307037209cedd61cbfa899fb9f5fd7e3a89694209801eb575cb6d00183

See more details on using hashes here.

File details

Details for the file wowool_sdk-3.2.2.dev3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wowool_sdk-3.2.2.dev3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09b0c5d2be6fc63971ba7a346b6b3172deb72d12cc6822bb55777e2e2a4af48e
MD5 8afb40bb9d85e8d7f76500bb72a8f2d0
BLAKE2b-256 86e365f17bc003a6c5a278600598f9b90ff1ac9dccc6ad63371a9955a17cb977

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