Hasan Iqbal
commited on
Commit
•
aee3c00
1
Parent(s):
e5d05d8
Added ruff and isort formatting
Browse files- .gitattributes +4 -0
- .gitignore +1 -0
- pyproject.toml +45 -21
- requirements.txt +2 -0
.gitattributes
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.py eol=lf
|
2 |
+
*.rst eol=lf
|
3 |
+
*.md eol=lf
|
4 |
+
*.mdx eol=lf
|
.gitignore
CHANGED
@@ -15,6 +15,7 @@ ignore.*.tfvars
|
|
15 |
DEVNOTES
|
16 |
tmp/
|
17 |
dev*.json
|
|
|
18 |
|
19 |
# Python Specific
|
20 |
.venv/
|
|
|
15 |
DEVNOTES
|
16 |
tmp/
|
17 |
dev*.json
|
18 |
+
.env
|
19 |
|
20 |
# Python Specific
|
21 |
.venv/
|
pyproject.toml
CHANGED
@@ -1,26 +1,16 @@
|
|
1 |
[build-system]
|
2 |
-
requires = ["setuptools"]
|
3 |
build-backend = "setuptools.build_meta"
|
|
|
4 |
|
5 |
[project]
|
6 |
-
name = "openfactcheck"
|
7 |
-
version = "0.3.3"
|
8 |
authors = [
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
]
|
16 |
-
maintainers = [
|
17 |
-
{name = "Hasan Iqbal", email = "hasan.iqbal@mbzuai.ac.ae"},
|
18 |
-
]
|
19 |
-
description = "An Open-source Factuality Evaluation Demo for LLMs"
|
20 |
-
readme = "README.md"
|
21 |
-
keywords=["NLP", "deep learning", "transformer", "pytorch", "factuality evaluation"]
|
22 |
-
requires-python = ">=3.10"
|
23 |
-
license = {file = "LICENSE"}
|
24 |
classifiers = [
|
25 |
"Development Status :: 3 - Alpha",
|
26 |
"Intended Audience :: Developers",
|
@@ -33,12 +23,22 @@ classifiers = [
|
|
33 |
"Programming Language :: Python :: 3.11",
|
34 |
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
35 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
[project.urls]
|
38 |
-
"Homepage" = "https://github.com/hasaniqbal777/openfactcheck"
|
39 |
"Bug Tracker" = "https://github.com/hasaniqbal777/openfactcheck/issues"
|
40 |
-
"Repository" = "https://github.com/hasaniqbal777/openfactcheck"
|
41 |
"Documentation" = "https://openfactcheck.readthedocs.io"
|
|
|
|
|
42 |
|
43 |
[tool.setuptools.dynamic]
|
44 |
dependencies = {file = ["requirements.txt"]}
|
@@ -53,7 +53,7 @@ docs = [
|
|
53 |
"sphinxext-rediraffe",
|
54 |
"sphinx-togglebutton",
|
55 |
"pydata-sphinx-theme",
|
56 |
-
"myst-parser"
|
57 |
]
|
58 |
|
59 |
[tool.setuptools.package-data]
|
@@ -65,6 +65,30 @@ openfactcheck = [
|
|
65 |
"templates/factchecker/*.csv",
|
66 |
"templates/factchecker/**/*.jsonl",
|
67 |
"templates/llm/*.csv",
|
68 |
-
"templates/report/*.tex"
|
69 |
]
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
[build-system]
|
|
|
2 |
build-backend = "setuptools.build_meta"
|
3 |
+
requires = ["setuptools"]
|
4 |
|
5 |
[project]
|
|
|
|
|
6 |
authors = [
|
7 |
+
{name = "Hasan Iqbal", email = "hasan.iqbal@mbzuai.ac.ae"},
|
8 |
+
{name = "Yuxia Wang", email = "yuxia.wang@mbzuai.ac.ae"},
|
9 |
+
{name = "Minghan Wang", email = "minghan.wang@monash.edu"},
|
10 |
+
{name = "Georgi Georgiev", email = "geoergi@uni-sofia.bg"},
|
11 |
+
{name = "Jiahui Geng", email = "jiahui.geng@mbzuai.ac.ae"},
|
12 |
+
{name = "Preslav Nakov", email = "preslav.nakov@mbzuai.ac.ae"},
|
13 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
classifiers = [
|
15 |
"Development Status :: 3 - Alpha",
|
16 |
"Intended Audience :: Developers",
|
|
|
23 |
"Programming Language :: Python :: 3.11",
|
24 |
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
25 |
]
|
26 |
+
description = "An Open-source Factuality Evaluation Demo for LLMs"
|
27 |
+
keywords = ["NLP", "deep learning", "transformer", "pytorch", "factuality evaluation"]
|
28 |
+
license = {file = "LICENSE"}
|
29 |
+
maintainers = [
|
30 |
+
{name = "Hasan Iqbal", email = "hasan.iqbal@mbzuai.ac.ae"},
|
31 |
+
]
|
32 |
+
name = "openfactcheck"
|
33 |
+
readme = "README.md"
|
34 |
+
requires-python = ">=3.10"
|
35 |
+
version = "0.3.2"
|
36 |
|
37 |
[project.urls]
|
|
|
38 |
"Bug Tracker" = "https://github.com/hasaniqbal777/openfactcheck/issues"
|
|
|
39 |
"Documentation" = "https://openfactcheck.readthedocs.io"
|
40 |
+
"Homepage" = "https://github.com/hasaniqbal777/openfactcheck"
|
41 |
+
"Repository" = "https://github.com/hasaniqbal777/openfactcheck"
|
42 |
|
43 |
[tool.setuptools.dynamic]
|
44 |
dependencies = {file = ["requirements.txt"]}
|
|
|
53 |
"sphinxext-rediraffe",
|
54 |
"sphinx-togglebutton",
|
55 |
"pydata-sphinx-theme",
|
56 |
+
"myst-parser",
|
57 |
]
|
58 |
|
59 |
[tool.setuptools.package-data]
|
|
|
65 |
"templates/factchecker/*.csv",
|
66 |
"templates/factchecker/**/*.jsonl",
|
67 |
"templates/llm/*.csv",
|
68 |
+
"templates/report/*.tex",
|
69 |
]
|
70 |
|
71 |
+
[tool.ruff]
|
72 |
+
line-length = 119
|
73 |
+
|
74 |
+
[tool.ruff.format]
|
75 |
+
# Like Black, use double quotes for strings.
|
76 |
+
quote-style = "double"
|
77 |
+
|
78 |
+
# Like Black, indent with spaces, rather than tabs.
|
79 |
+
indent-style = "space"
|
80 |
+
|
81 |
+
# Like Black, respect magic trailing commas.
|
82 |
+
skip-magic-trailing-comma = false
|
83 |
+
|
84 |
+
# Like Black, automatically detect the appropriate line ending.
|
85 |
+
line-ending = "auto"
|
86 |
+
|
87 |
+
[tool.ruff.lint]
|
88 |
+
# Never enforce `C901` (function complexity violations).
|
89 |
+
# Never enforce `E501` (line length violations).
|
90 |
+
ignore = ["C901", "E501"]
|
91 |
+
|
92 |
+
[tool.ruff.lint.isort]
|
93 |
+
known-first-party = ["openfactcheck"]
|
94 |
+
lines-after-imports = 2
|
requirements.txt
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
backoff
|
|
|
2 |
datasets
|
3 |
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl#sha256=86cc141f63942d4b2c5fcee06630fd6f904788d2f0ab005cce45aadb8fb73889
|
4 |
evaluate
|
5 |
factool @ git+https://github.com/hasaniqbal777/factool
|
6 |
nltk
|
|
|
7 |
python-Levenshtein
|
8 |
seaborn
|
9 |
sentence-transformers
|
|
|
1 |
backoff
|
2 |
+
boto3
|
3 |
datasets
|
4 |
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl#sha256=86cc141f63942d4b2c5fcee06630fd6f904788d2f0ab005cce45aadb8fb73889
|
5 |
evaluate
|
6 |
factool @ git+https://github.com/hasaniqbal777/factool
|
7 |
nltk
|
8 |
+
python-dotenv
|
9 |
python-Levenshtein
|
10 |
seaborn
|
11 |
sentence-transformers
|