GithubHelp home page GithubHelp logo

tcedcl's Introduction

Trigger-free Cybersecurity Event Detection Based on Contrastive Learning

Last update: 5/25/2023

Dependencies

  • Python 3.8
  • Numpy 1.16.2
  • transformers 4.29.1
  • pytorch 2.0.1
  • simcse 0.4

File description

1.unsuper_train.txt is used to train an unsupervised contrastive learning models to generate the model file used in our project. The model is named my-unsup-simcse-bert-base-uncased. The unsupervised contrastive learning model is an unsupervised contrastive learning method used in the SimCSE model. The link to SimCSE is https://github.com/princeton-nlp/SimCSE.

2.finetune.py file is used for fine-tuning the model.

3.simed.py file is used for detecting events.

4.annotation.jsonl is the annotated data file that needs to be divided into train, dev, and test in a 3:1:1 ratio.

References

  1. Tianyu Gao, Xingcheng Yao, and Danqi Chen. SimCSE: Simple Contrastive Learning of Sentence Embeddings. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. Online and Punta Cana, Dominican Republic. Association for Computational Linguistics., pp. 6894–6910, 2021

tcedcl's People

Contributors

tangyunzi avatar

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.