Skip to main content

Powering spaCy with Wave

Project description

Powering spaCy with Wave

PyPI - Python Version PyPI Status PyPI Status ReadTheDocs License

Building blocks for interactive and customizable spaCy-powered apps with Wave


InstallationSetupUsageDocumentationLicenseCredits


🚀 Installation

Python 3.6+ is required

To install stable version from PyPI (recommended):

pip install wacy

To install development version:

$ git clone https://github.com/thewaverguy/wacy
$ cd wacy
$ python3 -m pip install -r requirements.txt

💻 Setup

Wave

Download and run the Wave server (latest version recommended):

On Linux:

wget https://github.com/h2oai/wave/releases/download/v0.13.0/wave-0.13.0-linux-amd64.tar.gz
tar -xvzf wave-0.13.0-linux-amd64.tar.gz
cd wave-0.13.0-linux-amd64
./waved

On Mac:

wget https://github.com/h2oai/wave/releases/download/v0.13.0/wave-0.13.0-darwin-amd64.tar.gz
tar -xvzf wave-0.13.0-darwin-amd64.tar.gz
cd wave-0.13.0-darwin-amd64
./waved

You should see the Wave server running:

#
# ┌─────────────────────────┐
# │  ┌    ┌ ┌──┐ ┌  ┌ ┌──┐  │ H2O Wave
# │  │ ┌──┘ │──│ │  │ └┐    │ 0.13.0 20210306054523
# │  └─┘    ┘  ┘ └──┘  └─┘  │ © 2021 H2O.ai, Inc.
# └─────────────────────────┘
#

spaCy

Download spaCy models

venv/bin/python -m spacy download en_core_web_sm
venv/bin/python -m spacy download en_core_web_md
...

The above two models are required to run the sample base app.

You can also download more / other models and configure the app accordingly.

🛠️ Usage

Create a file for the Wave app:

# wave_app.py
from h2o_wave import Q, main, app
from wacy.apps import BaseApp

wacy_app = BaseApp()

@app('/wacy')
async def serve(q: Q):
    await wacy_app.serve(q)

Run the app: venv/bin/wave run wave_app.py

The app will be available on http://localhost:10101/wacy

📖 Documentation

Documentation: https://wacy.readthedocs.io
Examples: https://wacy.readthedocs.io/en/latest/examples.html

📋 License

This project is licensed under the Apache License 2.0

🙏 Credits

spaCy: https://spacy.io/
Wave: https://h2oai.github.io/wave/

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

wacy-0.0.5.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

wacy-0.0.5-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file wacy-0.0.5.tar.gz.

File metadata

  • Download URL: wacy-0.0.5.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for wacy-0.0.5.tar.gz
Algorithm Hash digest
SHA256 bd6fc2da013a527947140c4f2bd02a59e495d7792c3e454424b7aac1f649a049
MD5 958e6bc7c88d84345829cfb8e5bc7d4d
BLAKE2b-256 15f40d9f2fd4fa094c00678d740ea362de5938cde0bf6d019f4c1da75c318384

See more details on using hashes here.

File details

Details for the file wacy-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: wacy-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for wacy-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e125c9b690b89cf0864a84ae651efaa4f4ae3c97353d05b052e00c3888fdfb76
MD5 d2ef4df0de53f112a552ee3945bc3c99
BLAKE2b-256 6b51f52a6a7386e816ef439698282fe587685207e180611c9699aeb8f30628fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page