-
Install the latest version of python Download Python
-
Clone the repository
git clone https://github.com/shaban00/esg-bert.git
-
Change directory to the project
cd esg-bert -
Install python virtual environment
python -m venv .venv
-
Activate python virtual environment
- On Windows
.venv\Scripts\activate
- On Linux/MacOS
source .venv/bin/activate -
Install python dependencies
pip install pandas transformers tika tqdm openpyxl
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
-
Run the script
python app.py -d 'directory1,directory2' -f 'file1,file2' -o 'filename.json'
- You can specify either -d or -f or both
- "-d" specifies directories separated with commas
- "-f" specifies files separted with commas
- "-o" specifies the JSON output filename. eg: output.json
-
Convert JSON output to CSV
Online
Offline
python convert.py -i "input_filename.json" -o "output_filename"
-
Import CSV into excel for analysis (optional)
shaban00/esg-bert
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|