In this projet we use an N-grams and language Models to build an autocomplete The projet run with Flask and Angular
- A language model is a tool that's calculates the probabilities of sentences.
- Language models can estimate the probability of an upcoming word given a history of previous words.
- apply language models to autocomplete a given sentence then it outputs a suggestions to complete the sentence
- Applications:
- Speech recognition
- Spelling correction
- Augmentativce communication
- N-gram is a sequence of words.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
install Flask by typing this code below
pip install Flask
install Angular by typing this code below
npm i @angular/cli
To launch the project, place in the folder and launch the command below
$ set FLASK_APP = app.py
$ flask run
Place into app_Frontend and type
$ ng serve
- app_Frontend - the frontend is running on Angular
- app.py- the application running on Flask