-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
54 lines (44 loc) · 1.32 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
[tool.poetry]
name = "surprisal"
version = "0.1.6"
description = "A package to conveniently compute surprisals for text sequences and subsequences"
readme = "README.md"
homepage = "https://github.com/aalok-sathe/surprisal"
repository = "https://github.com/aalok-sathe/surprisal"
authors = ["aalok-sathe <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.8"
numpy = "^1.23.1"
plotext = "^5.0.2"
matplotlib = "^3.5.2"
torch = {version = "^2.0.0", optional = true}
transformers = {version = "^4.20.1", optional = true}
openai = {version = "^0.23.0", optional = true}
kenlm = {version = "^0.2.0", optional = true}
petals = {version = "^2.2.0.post1", optional = true}
[tool.poetry.extras]
transformers = ["transformers", "torch"]
kenlm = ["kenlm"]
openai = ["openai"]
petals = ["petals"]
all = ["transformers", "torch", "kenlm"]
allplus = ["transformers", "torch", "kenlm", "openai", "petals"]
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.docs.dependencies]
pdoc = "^14.1.0"
pylint = "^3.0.2"
pylint-exit = "^1.2.0"
pylint-json2html = "^0.5.0"
[tool.poetry.group.dev.dependencies]
ipython = "^8.4.0"
ipykernel = "^6.15.1"
ipywidgets = "^7.7.1"
pytest = "^7.2.0"
black = "^22.6.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"