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.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-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-cp313-cp313-macosx_11_0_arm64.whl (64.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

wowool_sdk-3.2.2-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-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.tar.gz.

File metadata

  • Download URL: wowool_sdk-3.2.2.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.tar.gz
Algorithm Hash digest
SHA256 a9df3265227dce74a5f74776df8f426a9a36f6e8597db2fc93329eab0ac62523
MD5 18915a2640cc3107ca5b751adca19a44
BLAKE2b-256 224b7243f51ff741a59fab767122defb254d5d3591c209b3c90588009d6acaef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bb5a81bcb175727cf66ca1daf8c97db8e261cddbc6406a1bc77b9bb3c1130179
MD5 69d4e58e283b6d38d79e28bd3912dc25
BLAKE2b-256 0b222f04f0693f92fd580a31ae98ca4735cfb2e8dfafe273f66f1d08aecbfbe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.2.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bff1aed61197c927c1cdbeecc3b4c9984c07ec98d79b393b31e7433b2eb106cc
MD5 0ca94d2c2a147d5f2f22fc8004d4bf73
BLAKE2b-256 17f6029000430c033e8916b41841fa923b3f5c33c0eee9a14642f969735fed1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cc32fb041b6b3bcaafa4800f4f2ab4f3ad634c74f104b451595d78df55c65605
MD5 e313579a88d43e2168a3c9cb1a4a8c22
BLAKE2b-256 34f22d66ff63e8c091251670fbaf4ea0bc1f9f8b9919b617a365af0d3b34086b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.2.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e51914dddaaa02540dea6530109b9c6847e26bcfcf992e0acc1522b02407bea9
MD5 228429edd310272a5d1db73d690c900d
BLAKE2b-256 19b18f52daa2eb001791be243f71bf720c332b586870fca4abf02608c711f34d

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