Powering spaCy with Wave
Project description
Powering spaCy with Wave
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wacy-0.1.2.tar.gz
.
File metadata
- Download URL: wacy-0.1.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e4b1b38a14efc20fc468ce974e5a4d85876a600096fad0997673d3230f802f8 |
|
MD5 | 82e8e673c018d801a1b4375c3fec04d0 |
|
BLAKE2b-256 | 60ba93a8e013482e1ab660ee544479194807031af5acc347e811b3ab52e66290 |
File details
Details for the file wacy-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: wacy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ea273a1c733795f2f61475288e95b560a35c04ef3f51688ac7125140c628e79 |
|
MD5 | fec213475376355b20b5c90d5ba39da8 |
|
BLAKE2b-256 | 44184f9fad99f54265e9ea2a51515e9d98d2cd0577a0e6676e4ed5954cfb6cd0 |