Skip to content

Natural Language Generation model which produces a report from a formatted input as excel or tableau.

License

Notifications You must be signed in to change notification settings

Joao-Tiago-Almeida/NLG-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Natural Language Generation model which produces a report from a formatted input table whether excel or tableau, and it is used pandas.DataFrame to access the data and produces a summarized report.

Pratical Example

Input Output
input output

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

During the development of the project it was used python3 (3.8.4)

Installing

Get pip3:

python3 get-pip.py

Get technologies

pip3 install Flask
pip3 install openpyxl
pip3 install excel2img
pip3 install elasticsearch
pip3 install nltk
pip3 install wordnet
pip3 install matplotlib
pip3 install numpy
pip3 install pandas
pip3 install sklearn

Running the offline model

The head file is local_test.py and contains several examples in json format. Due to confidentiality with the company I am not allowed to publish the server version so, in order to run the offline model it is needed to convert the table to json in the following format:

variable name: {'data':[     <table content>    ]}

% EXAMPLE

mammals3 = {
    "data": [
        {
            "Animal": "Okapi",
            "Adult weight(kg)": "225",
            "Maximum longevity(y)": "34",
            "Female maturity(d)": "578",
            "Male maturity(d)": "790",
            "Litter size": "1",
            "Domain": "Earth"
        }
    ]
}

When WTITE_FILE is True, it produces an HTML

Running the tests

Here is more Tableaus which the model produces nice reports:

Documentation

Here is all the documentation that have been supporting the project throughout the years.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgment

I worked two months in this NLG model during my Summer Intership at Syone at 2020.

About

Natural Language Generation model which produces a report from a formatted input as excel or tableau.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages