-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
91 lines (80 loc) · 2.21 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[project]
name = "hierarchy_transformers"
version = "0.1.2.dev0"
description = "Language models as hierarchy encoders."
readme = "README.md"
authors = [
{name = "Yuan He", email = "[email protected]"}
]
maintainers = [
{ name = "Yuan He", email = "[email protected]" }
]
license = {text = "Apache License 2.0"}
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.9"
keywords = [
"Language Models",
"Transformer Encoders",
"Hierarchy Encoders",
"Hierarchy Embedding",
"Hyperbolic Embedding"
]
dependencies = [
"sentence_transformers[train]>=3.4.0",
"deeponto>=0.9.2",
"geoopt>=0.5.0",
"scipy==1.13.1",
"seaborn"
]
[project.urls]
Homepage = "https://krr-oxford.github.io/HierarchyTransformers/"
Repository = "https://github.com/KRR-Oxford/HierarchyTransformers"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-env"
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"*" = ["*.jar", "*.yaml", "lib/*.jar"]
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
[tool.ruff]
line-length = 119
fix = true
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP"]
# Skip `E731` (do not assign a lambda expression, use a def)
ignore = [
# LineTooLong
"E501",
# DoNotAssignLambda
"E731"
]
[tool.ruff.lint.isort]
known-third-party = ["datasets"]
required-imports = ["from __future__ import annotations"]
[tool.pytest.ini-options]
testpaths = ["tests"]
addopts = "--strict-markers -m 'not slow'"
markers = [
"slow: marks tests as slow"
]
[tool.pytest_env]
MODEL_PATHS="Hierarchy-Transformers/HiT-MiniLM-L12-WordNetNoun,Hierarchy-Transformers/HiT-MiniLM-L12-SnomedCT"
DATASET_PATHS="Hierarchy-Transformers/WordNetNoun,Hierarchy-Transformers/SnomedCT"