Skip to main content

Powering spaCy with Wave

Project description

Powering spaCy with Wave

Python Version PyPI Version PyPI Downloads Documentation License GitHub

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



๐Ÿš€ Installation

Python 3.6+ is required

To install stable version from PyPI (recommended):

python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install wacy

To install development version:

git clone https://github.com/thewaverguy/wacy
cd wacy
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip setuptools wheel
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

python3 -m spacy download en_core_web_sm
python3 -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: 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.1.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

wacy-0.1.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wacy-0.1.1.tar.gz
  • Upload date:
  • Size: 10.1 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.1.1.tar.gz
Algorithm Hash digest
SHA256 2739db0a0e972c3bfcf72566a5f35ca5929438f136adfa8f58c4ef1b0c712a69
MD5 7f8300fc3162d3ee41928e08b3d00714
BLAKE2b-256 e29e4df8d5fdf350afa6f20ee892aba4e7b2b9ead40f32278cb9653ab52387af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wacy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce4faca30802cd7ce11c5bf17548647fe9f333cf718d94d4248e40b86355fe1d
MD5 f4cb731d7c02d3e5a824351603c65bb0
BLAKE2b-256 a8f6954f5cc79fa8828b1ac6d98db361318f922c3a6d3ddc5cc2a3e9a17be109

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