Web API for NLP tagger PIE
Project description
pie-flask
Flask API for Pie
How to use :
You can retrieve a Blueprint by using the following code
from flask import Flask
from flask_pie import PieController
from pie_extended.models.fro import get_iterator_and_processor
from pie_extended.cli.sub import get_tagger
app = Flask(__name__)
fro_controller = PieController(
tagger=get_tagger("fro"),
get_iterator_and_processor=get_iterator_and_processor,
path="/fro"
)
fro_controller.init_app(app)
if __name__ == "__main__":
app.run()
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
flask_pie-0.1.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for flask_pie-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdfc5ba2cdc746fb4fd10ee13a9097febc0e0c48e1da0039949457c45bc8e94a |
|
MD5 | 1ae081048945e0e0d58c01adc2fff3cf |
|
BLAKE2b-256 | 1dbf09406a85f238a7aff6793a212186089a25210133dfb4f2fab78b76a47daa |