Matthew Franglen commited on
Commit
48056e2
1 Parent(s): e9d4fde

My management tools, unrelated to dataset

Browse files
Files changed (5) hide show
  1. .make/.gitignore +2 -0
  2. .python-version +1 -0
  3. Makefile +41 -0
  4. poetry.lock +0 -0
  5. pyproject.toml +17 -0
.make/.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ *
2
+ !.gitignore
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.11.4
Makefile ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .PHONY: FORCE
2
+
3
+
4
+ ## Check hub identity
5
+ hub/whoami : .make/requirements
6
+ poetry run huggingface-cli whoami
7
+
8
+ ## Login to hub
9
+ hub/login : .make/requirements
10
+ poetry run huggingface-cli login
11
+
12
+ ## Create the hub dataset repository
13
+ # had to create this through the web interface
14
+ hub/create : .make/requirements
15
+ poetry run huggingface-cli repo create aste-v2 --type dataset
16
+
17
+
18
+ ## Install Python Dependencies
19
+ requirements : .make/requirements
20
+
21
+ .make/requirements : PYTHON_VERSION = $(shell cat .python-version)
22
+ .make/requirements : pyproject.toml poetry.lock
23
+ poetry env use $(PYTHON_VERSION)
24
+ PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry install
25
+ touch $@
26
+
27
+ poetry.lock : PYTHON_VERSION = $(shell cat .python-version)
28
+ poetry.lock : pyproject.toml
29
+ poetry env use $(PYTHON_VERSION)
30
+ PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry install
31
+ touch $@
32
+
33
+ #################################################################################
34
+ # Self Documenting Commands #
35
+ #################################################################################
36
+
37
+ .DEFAULT_GOAL := show-help
38
+ # See <https://gist.github.com/klmr/575726c7e05d8780505a> for explanation.
39
+ .PHONY: show-help
40
+ show-help:
41
+ @echo "$$(tput setaf 2)Available rules:$$(tput sgr0)";sed -ne"/^## /{h;s/.*//;:d" -e"H;n;s/^## /---/;td" -e"s/:.*//;G;s/\\n## /===/; s/\\n//g;p;}" ${MAKEFILE_LIST}|awk -F === -v n=$$(tput cols) -v i=4 -v a="$$(tput setaf 6)" -v z="$$(tput sgr0)" '{printf"- %s%s%s\n",a, $$1,z;m=split($$2,w,"---");l=n-i;for(j=1;j<=m;j++){l-=length(w[j])+1;if(l<= 0){l=n-i-length(w[j])-1;}printf"%*s%s\n",-i," ",w[j];}}'
poetry.lock ADDED
The diff for this file is too large to render. See raw diff
 
pyproject.toml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.poetry]
2
+ name = "dataset-aste-v2"
3
+ version = "0.1.0"
4
+ description = "Aspect Sentiment Triplet Extraction (ASTE) https://aclanthology.org/2021.acl-long.367/ dataset converted to use character level indices and the original Sem Eval 2014 Task 4 https://alt.qcri.org/semeval2014/task4/ text"
5
+ authors = []
6
+ readme = "README.md"
7
+
8
+ [tool.poetry.dependencies]
9
+ python = "^3.11"
10
+
11
+ datasets = "^2.14.5"
12
+ huggingface-hub = "^0.17.3"
13
+
14
+
15
+ [build-system]
16
+ requires = ["poetry-core"]
17
+ build-backend = "poetry.core.masonry.api"