OTTAA-Project / OTTAAProject

Join us to create the first Augmentative communication platform for speech-impaired children!
https://ottaa-project.github.io/
GNU General Public License v3.0
5 stars 1 forks source link

Realiser Implementation #141

Closed gonojuarez closed 1 year ago

gonojuarez commented 1 year ago

Implements Realiser algorithm Change the NLG by the Realiser algorithm in Spanish.

Description The realiser transforms a sentence made of generic pictograms into a proper conjugated expression

Steps

gonojuarez commented 1 year ago

examples of JSON structure: [ { "words": ["yo", "mamá", "ella", "hablar", "ella"], "types": ["SUBJ", "SUBJ", "SUBJ", "VERB", "SUBJ"], "language": "es", "props": { "1": { "gender": "ella" } } }, { "words": ["ayer", "yo", "mamá", "tengo que", "cantar", "bello"], "types": ["ADV", "SUBJ", "SUBJ", "VERB", "VERB", "ADJ"], "language": "es", "props": { "1": { "gender": "ella" }, "2": { "gender": "ella" } } }, { "words": ["la", "mujer", "lindo", "yo", "bailar", "en", "estadio"], "types": ["ART", "SUBJ", "ADJ", "SUBJ", "VERB", "PREP", "NOUN"], "language": "es", "props": { "1": { "gender": "ella" } } }, { "words": ["mama", "bailar", "papá", "cantar"], "types": ["SUBJ", "VERB", "SUBJ", "VERB"], "language": "es", "props": { "0": { "gender": "ella" } } }, { "words": ["mama", "papá", "bailar", "cantar"], "types": ["SUBJ", "SUBJ", "VERB", "VERB"], "language": "es", "props": { "0": { "gender": "ella" } } }, { "words": ["mama", "bailar", "papá", "cantar", "antes", "rápido"], "types": ["SUBJ", "VERB", "SUBJ", "VERB", "ADV", "ADV"], "language": "es", "props": {} }, { "words": ["la", "mujer", "lindo", "bueno", "bailar", "papá", "cantar", "antes", "rápido"], "types": ["ART", "SUBJ", "MOD", "MOD", "VERB", "SUBJ", "VERB", "MOD", "MOD"], "language": "es", "props": { "0": { "gender": "ella" } } } ]