https://github.com/chaoscodes/untl

EMNLP'2022: Unsupervised Non-transferable Text Classification

https://github.com/chaoscodes/untl

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.4%) to scientific vocabulary

Keywords

emnlp2022 nlp text-classification transfer-learning
Last synced: 5 months ago · JSON representation

Repository

EMNLP'2022: Unsupervised Non-transferable Text Classification

Basic Info
  • Host: GitHub
  • Owner: ChaosCodes
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 178 KB
Statistics
  • Stars: 9
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
emnlp2022 nlp text-classification transfer-learning
Created over 3 years ago · Last pushed over 3 years ago
Metadata Files
Readme License

README.md

Unsupervised-Non-transferable-Text-Classification

This repository is for our EMNLP' 22 paper:

Unsupervised Non-transferable Text Classification ArXiv

Guangtao Zeng, Wei Lu

Overview

We propose a novel unsupervised non-transferable learning method for the text classification task that does not require annotated target domain data. We further introduce a secret key component in our approach for recovering the access to the target domain, where we design both an explicit (prompt secret key) and an implicit method (adapter secret key) for doing so.

overview

Install dependencies

Run the following scripts to install the dependencies.

shell pip install -r requirements.txt

Training

Create a directory outputs for storing the checkpoints by:

shell mkdir outputs

Run the scripts to train the UNTL model.

shell python UNTL.py

As for the secret key based methods, run the following scripts to train the models

  • Train the prompt secret key based model

sh python UNTL_with_prefix.py

  • Train the adapter secret key based model

sh python UNTL_with_adapter.py

Evaluatoin

After finishing training, run the following scripts for evaluating the model.

  1. Evaluate the UNTL model

shell python predict.py

  1. Evaluate the prompt secret key based model

sh python predict_prefix.py

  1. Evaluate the adapter secret key based model

shell python predict_adapter.py

Reference

@inproceedings{zeng2022unsupervised, author = {Guangtao Zeng and Wei Lu}, title = {Unsupervised Non-transferable Text Classification}, booktitle = {Proceedings of EMNLP}, year = {2022} }

Owner

  • Login: ChaosCodes
  • Kind: user

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels