|
.PHONY: FORCE |
|
|
|
|
|
|
|
hub/whoami : .make/requirements |
|
poetry run huggingface-cli whoami |
|
|
|
|
|
hub/login : .make/requirements |
|
poetry run huggingface-cli login |
|
|
|
|
|
|
|
hub/create : .make/requirements |
|
poetry run huggingface-cli repo create aste-v2 --type dataset |
|
|
|
data : \ |
|
data/2014/laptop/aste/test.gz.parquet \ |
|
data/2014/laptop/aste/valid.gz.parquet \ |
|
data/2014/laptop/sem-eval/train.gz.parquet \ |
|
data/2014/laptop/aste/train.gz.parquet \ |
|
data/2014/laptop/sem-eval/test.gz.parquet \ |
|
data/2014/laptop/sem-eval/valid.gz.parquet \ |
|
data/2014/restaurant/aste/train.gz.parquet \ |
|
data/2014/restaurant/aste/valid.gz.parquet \ |
|
data/2014/restaurant/aste/test.gz.parquet \ |
|
data/2014/restaurant/sem-eval/train.gz.parquet \ |
|
data/2014/restaurant/sem-eval/valid.gz.parquet \ |
|
data/2014/restaurant/sem-eval/test.gz.parquet \ |
|
data/2015/restaurant/aste/test.gz.parquet \ |
|
data/2015/restaurant/aste/train.gz.parquet \ |
|
data/2015/restaurant/aste/valid.gz.parquet \ |
|
data/2015/restaurant/sem-eval/test.gz.parquet \ |
|
data/2015/restaurant/sem-eval/train.gz.parquet \ |
|
data/2015/restaurant/sem-eval/valid.gz.parquet \ |
|
data/2016/restaurant/aste/train.gz.parquet \ |
|
data/2016/restaurant/aste/valid.gz.parquet \ |
|
data/2016/restaurant/aste/test.gz.parquet \ |
|
data/2016/restaurant/sem-eval/train.gz.parquet \ |
|
data/2016/restaurant/sem-eval/valid.gz.parquet \ |
|
data/2016/restaurant/sem-eval/test.gz.parquet |
|
|
|
|
|
data/2014/laptop/aste/train.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/laptop-2014/train_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2014/laptop/aste/valid.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/laptop-2014/dev_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2014/laptop/aste/test.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/laptop-2014/test_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2014/laptop/sem-eval/train.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/laptop-2014/train_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2014/Laptop_Train_v2.xml \ |
|
--output-file $@ |
|
|
|
data/2014/laptop/sem-eval/valid.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/laptop-2014/dev_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2014/Laptop_Train_v2.xml \ |
|
--output-file $@ |
|
|
|
data/2014/laptop/sem-eval/test.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/laptop-2014/test_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2014/Laptops_Test_Data_PhaseA.xml \ |
|
--output-file $@ |
|
|
|
|
|
data/2014/restaurant/aste/train.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2014/train_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2014/restaurant/aste/valid.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2014/dev_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2014/restaurant/aste/test.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2014/test_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2014/restaurant/sem-eval/train.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2014/train_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2014/Restaurants_Train_v2.xml \ |
|
--output-file $@ |
|
|
|
data/2014/restaurant/sem-eval/valid.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2014/dev_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2014/Restaurants_Train_v2.xml \ |
|
--output-file $@ |
|
|
|
data/2014/restaurant/sem-eval/test.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2014/test_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2014/Restaurants_Test_Data_PhaseA.xml \ |
|
--output-file $@ |
|
|
|
|
|
data/2015/restaurant/aste/train.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2015/train_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2015/restaurant/aste/valid.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2015/dev_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2015/restaurant/aste/test.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2015/test_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2015/restaurant/sem-eval/train.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2015/train_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2015/ABSA-15_Restaurants_Train_Final.xml \ |
|
--output-file $@ |
|
|
|
data/2015/restaurant/sem-eval/valid.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2015/dev_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2015/ABSA-15_Restaurants_Train_Final.xml \ |
|
--output-file $@ |
|
|
|
data/2015/restaurant/sem-eval/test.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2015/test_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2015/ABSA15_Restaurants_Test.xml \ |
|
--output-file $@ |
|
|
|
|
|
data/2016/restaurant/aste/train.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2016/train_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2016/restaurant/aste/valid.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2016/dev_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2016/restaurant/aste/test.gz.parquet : .make/requirements |
|
poetry run python -m src.main aste \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2016/test_triplets.txt \ |
|
--output-file $@ |
|
|
|
data/2016/restaurant/sem-eval/train.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2016/train_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2016/ABSA16_Restaurants_Train_SB1_v2.xml \ |
|
--output-file $@ |
|
|
|
data/2016/restaurant/sem-eval/valid.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2016/dev_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2016/ABSA16_Restaurants_Train_SB1_v2.xml \ |
|
--output-file $@ |
|
|
|
data/2016/restaurant/sem-eval/test.gz.parquet : .make/requirements |
|
poetry run python -m src.main sem-eval \ |
|
--aste-file data/raw/aspect-sentiment-triplet-extraction/restaurant-2016/test_triplets.txt \ |
|
--sem-eval-file data/raw/sem-eval/2016/EN_REST_SB1_TEST.xml.gold \ |
|
--output-file $@ |
|
|
|
|
|
|
|
requirements : .make/requirements |
|
|
|
.make/requirements : PYTHON_VERSION = $(shell cat .python-version) |
|
.make/requirements : pyproject.toml poetry.lock |
|
poetry env use $(PYTHON_VERSION) |
|
PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry install |
|
touch $@ |
|
|
|
poetry.lock : PYTHON_VERSION = $(shell cat .python-version) |
|
poetry.lock : pyproject.toml |
|
poetry env use $(PYTHON_VERSION) |
|
PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry install |
|
touch $@ |
|
|
|
|
|
|
|
|
|
|
|
.DEFAULT_GOAL := show-help |
|
|
|
.PHONY: show-help |
|
show-help: |
|
@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];}}' |
|
|