An open API service indexing awesome lists of open source software.

https://github.com/abdouaziz/autocomplet

N-grams to build an autocomplet
https://github.com/abdouaziz/autocomplet

angular flask frontend language-models projet

Last synced: about 2 months ago
JSON representation

N-grams to build an autocomplet

Awesome Lists containing this project

README

        

# Autocomplete and Language Models

![autocompletion](https://github.com/abdouaziz/autocomplet/blob/master/image/image.JPG)

> 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