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.3.0.tar.gz (73.5 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.3.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.3.0-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.3.0-cp313-cp313-macosx_11_0_arm64.whl (64.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

wowool_sdk-3.3.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.3.0-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.3.0-cp312-cp312-macosx_11_0_arm64.whl (64.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

File metadata

  • Download URL: wowool_sdk-3.3.0.tar.gz
  • Upload date:
  • Size: 73.5 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.3.0.tar.gz
Algorithm Hash digest
SHA256 fb1f7a2e6eb4a09741fa32282f72a8bf28aff8380fddb981da1601479f718ee9
MD5 3328a9cc0bcf404777db24ddc5df04c6
BLAKE2b-256 3eda871b8570025019914f8084e873d71064b50769d8bca3ba784c3bc6ed7759

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1f520c56a89645197220978f7284e71197eb87681e3d3a431197915288109c9
MD5 0a3caa3d9fe2ef82e29db58d0947acca
BLAKE2b-256 771e86167ce5f19da78b5673fbbf1c502275b9d8d9a722db71cddc7e51b44e3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.3.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c13a674503faa7731c2d62f86d27029a5b42a47bb841621d3bec5986339b6897
MD5 5a7e05ea34d0d000a51ed07b022a05c9
BLAKE2b-256 dc48eccd89be533f74d35ac616c68fbf9a9883ad467a55b2c8a137221c048cf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b95c1f35c5a9576f02f4f68ad5ad872d2f96cc65791568b5cf762f13337f3ea8
MD5 fe678e85a8a17b7b354c6bc2eb429bb0
BLAKE2b-256 154d3be382c441fca02bcd5c755d18fe501b89e13ebb4d53f1f9933cfc316da6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ab15c19414eec442cb94b8ed40face0575fe4d427e0e32cbea5e61b8c4936bf
MD5 5c7332d6abee7dd44c2c02291cbd6878
BLAKE2b-256 74aea14182bcabc7231fcb01179c5fac3d7acff3e5663f7c0eedc1689b0631dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b45f5042ba3f58de3e02d442d4a7bcfb29df9c7e0df0e09438e8aeff69f1f580
MD5 11d30f4d87fb0221edaf3a8390ed959d
BLAKE2b-256 cfabfcb0384d880f3d6029f0eafde3fe6486acdf6f1f4f2641b6570f78138254

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b398ac95af20f2ae9ef5dd5dacaeb89f5e1338b8b260d2e9fae0bcb1351c9d31
MD5 6b894d758db9a23060c6f8e158f7a2c4
BLAKE2b-256 b4284af1a555265d165517db96dd6222ee013133f11ca8dbe4fd138aeef8de96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wowool_sdk-3.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9011b1832e81e5a60fcb86d74765762503cb4c726130bb530f1cf0bdd0eefc64
MD5 702f0a5d66734eeaa20e462b6bc9791c
BLAKE2b-256 074d821cb67fe72bc8d8341a00bb58a0cf6ff2a543da2bd30440ca76dfde07aa

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