Skip to content

Commit

Permalink
Merge pull request #10 from tanishq-ids/relevance_detector
Browse files Browse the repository at this point in the history
push with code for relevance detector
  • Loading branch information
ModeSevenIndustrialSolutions authored May 15, 2024
2 parents 3d6d670 + 9cbe6b8 commit b7a3a54
Show file tree
Hide file tree
Showing 16 changed files with 44,542 additions and 166 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ source =
*/site-packages/

[report]
skip_empty = true
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
Expand Down
1,537 changes: 1,536 additions & 1 deletion pdm.lock

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ classifiers = [
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
dependencies = [
"torch>=2.2.2",
"pandas>=2.2.2",
"tokenizers>=0.19.1",
"ipykernel>=6.29.4",
"transformers>=4.40.0",
"pre-commit>=3.7.0",
]

[project.urls]
Homepage = "https://github.com/os-climate/osc-transformer-based-extractor"
Expand Down Expand Up @@ -61,14 +69,14 @@ test = [
[tool.pdm.scripts]
pre_release = "scripts/dev-versioning.sh"
release = "scripts/release-versioning.sh"
test = "pytest"
test = ["pdm[pytest]", "pytest-cov"]
tox = "tox"
docs = { shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview" }
lint = "pre-commit run --all-files"
complete = { call = "tasks.complete:main", help = "Create autocomplete files for bash and fish" }

[tool.pdm.dev-dependencies]
test = ["pdm[pytest]", "pytest", "pytest-cov"]
test = ["pdm[pytest]", "pytest-cov"]
tox = ["tox", "tox-pdm>=0.5"]
docs = ["sphinx>=7.2.6", "sphinx-copybutton>=0.5.2"]
dev = ["tox>=4.11.3", "tox-pdm>=0.7.0"]
Expand Down
16 changes: 0 additions & 16 deletions src/osc_data_extractor/__init__.py

This file was deleted.

147 changes: 0 additions & 147 deletions src/osc_data_extractor/skeleton.py

This file was deleted.

Binary file not shown.
25 changes: 25 additions & 0 deletions src/relevance_detector/OSC/kpi_mapping.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
kpi_id,question,sectors,add_year,kpi_category,,
0,What is the company name?,"OG, CM, CU",FALSE,TEXT,,
1,In which year was the annual report or the sustainability report published?,"OG, CM, CU",FALSE,TEXT,,
2,What is the total volume of proven and probable hydrocarbons reserves?,OG,TRUE,"TEXT, TABLE",,
2.1,What is the volume of estimated proven hydrocarbons reserves?,OG,TRUE,"TEXT, TABLE",,
2.2,What is the volume of estimated probable hydrocarbons reserves?,OG,TRUE,"TEXT, TABLE",,
3,What is the total volume of hydrocarbons production?,OG,TRUE,"TEXT, TABLE",,
3.1,What is the total volume of crude oil liquid production?,OG,TRUE,"TEXT, TABLE",,
3.2,What is the total volume of natural gas liquid production?,OG,TRUE,"TEXT, TABLE",,
3.3,What is the total volume of natural gas production?,OG,TRUE,"TEXT, TABLE",,
4,What is the annual total production from coal?,CU,TRUE,"TEXT, TABLE",,
4.1,What is the annual total production from lignite (brown coal)?,CU,TRUE,"TEXT, TABLE",,
4.2,What is the annual total production from hard coal?,CU,TRUE,"TEXT, TABLE",,
5,What is the total installed capacity from coal?,CU,TRUE,"TEXT, TABLE",,
5.1,What is the total installed capacity from lignite (brown coal)?,CU,TRUE,"TEXT, TABLE",,
5.2,What is the total installed capacity from hard coal?,CU,TRUE,"TEXT, TABLE",,
6,What is the total amount of direct greenhouse gases emissions referred to as scope 1 emissions?,"CU, OG",TRUE,"TEXT, TABLE",,
7,What is the total amount of energy indirect greenhouse gases emissions referred to as scope 2 emissions?,"CU, OG",TRUE,"TEXT, TABLE",,
8,What is the total amount of upstream energy indirect greenhouse gases emissions referred to as scope 3 emissions?,"CU, OG",TRUE,"TEXT, TABLE",,
9,What is the base year for carbon reduction commitment?,"OG, CM, CU",FALSE,"TEXT, TABLE",,
10,What is the climate commitment scenario considered?,"OG, CM, CU",TRUE,TEXT,,
11,What is the target year for climate commitment?,"OG, CM, CU",FALSE,TEXT,,
12,What is the target carbon reduction in percentage?,"OG, CM, CU",TRUE,TEXT,,
13,What is the total amount of scope 1 and 2 greenhouse gases emissions?,CU,TRUE,"TEXT, TABLE",,
14,"What is the total amount of scope 1, scope 2 and scope 3 greenhouse gases emissions?",OG,TRUE,"TEXT, TABLE",,
Loading

0 comments on commit b7a3a54

Please sign in to comment.