-
Notifications
You must be signed in to change notification settings - Fork 41
Backend: HTTP
Juho Inkinen edited this page Sep 22, 2022
·
9 revisions
The http
backend communicates with a REST API that provides a suggest
method. It can be either another instance of Annif or a service such as MauiServer.
[http-en]
name=HTTP English
language=en
backend=http
endpoint=http://localhost:5050/yso-en/suggest
vocab=yso
The endpoint
setting specifies a URL where requests for subject suggestions are POSTed.
Load a vocabulary:
annif loadvoc http-en /path/to/Annif-corpora/vocab/yso-en.tsv
Training is not possible.
Test with a single document:
cat document.txt | annif suggest http-en
Evaluate a directory full of files in fulltext document corpus format:
annif eval http-en /path/to/documents/
- Home
- Getting started
- System requirements
- Optional features and dependencies
- Usage with Docker
- Architecture
- Commands
- Web user interface
- REST API
- Corpus formats
- Project configuration
- Analyzers
- Transforms
- Language detection
- Hugging Face Hub integration
- Achieving good results
- Reusing preprocessed training data
- Running as a WSGI service
- Backward compatibility between Annif releases
- Backends
- Development flow, branches and tags
- Release process
- Creating a new backend