├── README.md ├── README_EN.md ├── SPT-ABSA.pdf ├── asc_ae_aoe ├── aoe_train.py ├── asc_train.py ├── ate_train.py ├── bash │ ├── README.md │ ├── aoe_train.sh │ ├── aoe_train_batch.sh │ ├── asc_train.sh │ ├── asc_train_batch.sh │ ├── ate_train.sh │ └── ate_train_batch.sh ├── data │ ├── 14lap │ │ ├── dev.json │ │ ├── test.json │ │ └── train.json │ ├── 14res │ │ ├── dev.json │ │ ├── test.json │ │ └── train.json │ ├── 15res │ │ ├── dev.json │ │ ├── test.json │ │ └── train.json │ └── aoe │ │ ├── 14lap │ │ ├── test.json │ │ └── train.json │ │ ├── 14res │ │ ├── test.json │ │ └── train.json │ │ ├── 15res │ │ ├── test.json │ │ └── train.json │ │ └── 16res │ │ ├── test.json │ │ └── train.json ├── metric_summation.py ├── model │ ├── aoe_pair.py │ ├── asc_pair.py │ └── ate_bio.py └── utils │ ├── __init__.py │ ├── aoe_pair_datamodule.py │ ├── aoe_result.py │ ├── asc_pair_datamodule.py │ ├── asc_result.py │ ├── ate_bio_datamodule.py │ ├── ate_result.py │ └── bio.py ├── knowledge-mining ├── README.md ├── annotate.py ├── build_vocab_for_polarity_assign.py ├── build_vocab_pathmanager.py ├── make_bash.py ├── mine.py ├── polarity_assign.py ├── spacy_token.py ├── spacy_tokenize.py ├── subjclueslen1-HLTEMNLP05.tff └── utils │ ├── __init__.py │ ├── path_manager.py │ └── vocab.py └── pre-training ├── README.md ├── bash └── 400k.sh ├── mlm_pretrain.py ├── model ├── mlm.py └── mlm_syntax_rating.py ├── sentiment_pretrain.py └── utils ├── __init__.py ├── lite_spacy_token.py ├── mlm_datamodule.py └── spt_datamodule.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/README.md -------------------------------------------------------------------------------- /README_EN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/README_EN.md -------------------------------------------------------------------------------- /SPT-ABSA.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/SPT-ABSA.pdf -------------------------------------------------------------------------------- /asc_ae_aoe/aoe_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/aoe_train.py -------------------------------------------------------------------------------- /asc_ae_aoe/asc_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/asc_train.py -------------------------------------------------------------------------------- /asc_ae_aoe/ate_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/ate_train.py -------------------------------------------------------------------------------- /asc_ae_aoe/bash/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/bash/README.md -------------------------------------------------------------------------------- /asc_ae_aoe/bash/aoe_train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/bash/aoe_train.sh -------------------------------------------------------------------------------- /asc_ae_aoe/bash/aoe_train_batch.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/bash/aoe_train_batch.sh -------------------------------------------------------------------------------- /asc_ae_aoe/bash/asc_train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/bash/asc_train.sh -------------------------------------------------------------------------------- /asc_ae_aoe/bash/asc_train_batch.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/bash/asc_train_batch.sh -------------------------------------------------------------------------------- /asc_ae_aoe/bash/ate_train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/bash/ate_train.sh -------------------------------------------------------------------------------- /asc_ae_aoe/bash/ate_train_batch.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/bash/ate_train_batch.sh -------------------------------------------------------------------------------- /asc_ae_aoe/data/14lap/dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/14lap/dev.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/14lap/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/14lap/test.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/14lap/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/14lap/train.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/14res/dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/14res/dev.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/14res/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/14res/test.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/14res/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/14res/train.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/15res/dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/15res/dev.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/15res/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/15res/test.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/15res/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/15res/train.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/aoe/14lap/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/aoe/14lap/test.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/aoe/14lap/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/aoe/14lap/train.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/aoe/14res/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/aoe/14res/test.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/aoe/14res/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/aoe/14res/train.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/aoe/15res/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/aoe/15res/test.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/aoe/15res/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/aoe/15res/train.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/aoe/16res/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/aoe/16res/test.json -------------------------------------------------------------------------------- /asc_ae_aoe/data/aoe/16res/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/data/aoe/16res/train.json -------------------------------------------------------------------------------- /asc_ae_aoe/metric_summation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/metric_summation.py -------------------------------------------------------------------------------- /asc_ae_aoe/model/aoe_pair.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/model/aoe_pair.py -------------------------------------------------------------------------------- /asc_ae_aoe/model/asc_pair.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/model/asc_pair.py -------------------------------------------------------------------------------- /asc_ae_aoe/model/ate_bio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/model/ate_bio.py -------------------------------------------------------------------------------- /asc_ae_aoe/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/utils/__init__.py -------------------------------------------------------------------------------- /asc_ae_aoe/utils/aoe_pair_datamodule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/utils/aoe_pair_datamodule.py -------------------------------------------------------------------------------- /asc_ae_aoe/utils/aoe_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/utils/aoe_result.py -------------------------------------------------------------------------------- /asc_ae_aoe/utils/asc_pair_datamodule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/utils/asc_pair_datamodule.py -------------------------------------------------------------------------------- /asc_ae_aoe/utils/asc_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/utils/asc_result.py -------------------------------------------------------------------------------- /asc_ae_aoe/utils/ate_bio_datamodule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/utils/ate_bio_datamodule.py -------------------------------------------------------------------------------- /asc_ae_aoe/utils/ate_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/utils/ate_result.py -------------------------------------------------------------------------------- /asc_ae_aoe/utils/bio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/asc_ae_aoe/utils/bio.py -------------------------------------------------------------------------------- /knowledge-mining/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/README.md -------------------------------------------------------------------------------- /knowledge-mining/annotate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/annotate.py -------------------------------------------------------------------------------- /knowledge-mining/build_vocab_for_polarity_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/build_vocab_for_polarity_assign.py -------------------------------------------------------------------------------- /knowledge-mining/build_vocab_pathmanager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/build_vocab_pathmanager.py -------------------------------------------------------------------------------- /knowledge-mining/make_bash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/make_bash.py -------------------------------------------------------------------------------- /knowledge-mining/mine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/mine.py -------------------------------------------------------------------------------- /knowledge-mining/polarity_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/polarity_assign.py -------------------------------------------------------------------------------- /knowledge-mining/spacy_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/spacy_token.py -------------------------------------------------------------------------------- /knowledge-mining/spacy_tokenize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/spacy_tokenize.py -------------------------------------------------------------------------------- /knowledge-mining/subjclueslen1-HLTEMNLP05.tff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/subjclueslen1-HLTEMNLP05.tff -------------------------------------------------------------------------------- /knowledge-mining/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/utils/__init__.py -------------------------------------------------------------------------------- /knowledge-mining/utils/path_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/utils/path_manager.py -------------------------------------------------------------------------------- /knowledge-mining/utils/vocab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/knowledge-mining/utils/vocab.py -------------------------------------------------------------------------------- /pre-training/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/README.md -------------------------------------------------------------------------------- /pre-training/bash/400k.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/bash/400k.sh -------------------------------------------------------------------------------- /pre-training/mlm_pretrain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/mlm_pretrain.py -------------------------------------------------------------------------------- /pre-training/model/mlm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/model/mlm.py -------------------------------------------------------------------------------- /pre-training/model/mlm_syntax_rating.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/model/mlm_syntax_rating.py -------------------------------------------------------------------------------- /pre-training/sentiment_pretrain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/sentiment_pretrain.py -------------------------------------------------------------------------------- /pre-training/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/utils/__init__.py -------------------------------------------------------------------------------- /pre-training/utils/lite_spacy_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/utils/lite_spacy_token.py -------------------------------------------------------------------------------- /pre-training/utils/mlm_datamodule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/utils/mlm_datamodule.py -------------------------------------------------------------------------------- /pre-training/utils/spt_datamodule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HITSZ-HLT/SPT-ABSA/HEAD/pre-training/utils/spt_datamodule.py --------------------------------------------------------------------------------