CoreNLG as a framework

CoreNLG as a framework #

For bigger projects where a more specific file structure is needed, CoreNLG provides a project template for what we call using it as framework.

pip install cookiecutter
cookiecutter https://github.com/societe-generale/core-nlg.git

This is the file structure you should obtain:

MyProject
|-- ProjectEntryPoint.py
|-- MyProject
|   |-- Datas
|   |   |-- MyDatas.py
|   |-- TextClass
|   |   |-- Introduction.py
|   |   |-- Content.py
|   |-- Resources
|   |-- Tools
|-- inputs
|   |-- test.json

ProjectEntryPoint.py will be your main, you can use it to test locally your application.

Run this file and you will see the HTML result in your console and your browser will render it automatically.