Skip to content

abdouaziz/autocomplet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autocomplete and Language Models

autocompletion

In this projet we use an N-grams and language Models to build an autocomplete The projet run with Flask and Angular

N-Grams and Language Models

  • 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.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

install Flask by typing this code below

 pip install Flask

install Angular by typing this code below

npm i @angular/cli

Running the tests

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 

Files

  • app_Frontend - the frontend is running on Angular
  • app.py- the application running on Flask