Skip to content

Anima manages the NLG (Natural Language Generation) part of milobella.

Notifications You must be signed in to change notification settings

milobella/anima

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anima

Anima manages the NLG (Natural Language Generation) part of Milobella.

All sentences of an Anima entity should :

  • be understandable,
  • be grammatically correct,
  • be available in several languages,
  • seem to come from a unique person, with a temper, an identity,
  • be adapted to the person who is speaking.

Installation

pip install -r requirements.txt
pip install -e .

Run

anima_launcher

Example of request

Sentence restitution

$ curl -X POST http://localhost:9333/api/v1/restitute -d '{"sentence": "It is {{time}}", "params": [{"name": "time", "type": "time", "value": "15h"}]}'
Il est 15h.

Raw sentences

$ curl http://localhost:9333/api/v1/sentences
{"it is {{time}}":["Il est {{time}}"]}