Giter Club home page Giter Club logo

grte's Introduction

Graph Receptive Transformer Encoder for Text Classification

GitHub License Python Version PyTorch

This repository contains the code for the "Graph Receptive Transformer Encoder for Text Classification" paper published in IEEE Transactions on Signal and Information Processing over Networks. Please cite the following paper if you use this code in your research:

@article{grte2024,
  author   = {Aras, Arda Can and Alikaşifoğlu, Tuna and Koç, Aykut},
  journal  = {IEEE Transactions on Signal and Information Processing over Networks},
  title    = {Graph Receptive Transformer Encoder for Text Classification},
  year     = {2024},
  volume   = {10},
  number   = {},
  pages    = {347-359},
  doi      = {10.1109/TSIPN.2024.3380362}
}

Installation

This codebase utilizes Poetry for package management. To install the dependencies, in the root directory run:

poetry install

or if you do not want to use Poetry, or use the exact pinned versions, you can install the dependencies provided in requirements.txt using pip or conda, e,g.,

pip install -r requirements.txt

grte's People

Contributors

ardaaras99 avatar tunakasif avatar

Watchers

 avatar

grte's Issues

running process

Hello, how does your project run? Can you give me a running process? In the util_fncs.py file, def get_encoder_outputs(dataset_name):
emb_path = f"/Users/ardaaras/Documents/finetune-text-graphs/generator-output/{dataset_name}_embeddings.pth"
cls_logits_path = f"/Users/ardaaras/Documents/finetune-text-graphs/generator-output/{dataset_name}_logits.pth"
x = torch.load(emb_path)
cls_logits = torch.load(cls_logits_path)
return x, cls_logits How the emb_path and cls_logits_path paths in this function are generated is not given in the two path projects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.