Git Product home page Git Product logo

convosentinel's Introduction

ConvoSentinel

SEConvo Data

The SEConvo data is available for download here. See SEConvo/README.md for data details.

To Run ConvoSentinel

  1. Recommended to use python 3.10.
  2. Obtain the trained_si_model and faiss_index_v5 (conversation snippet dataset). Place trained_si_model in the message_si_detector/ folder and faiss_index_v5 in the se_attempt_detector/ folder. These models are publicly available but are not detailed here due to the anonymity policy.
  3. Place your Hugging Face token in the hf_token.txt file and your OpenAI API key in the openai_api_key.txt file.
  4. Install the required packages:
    pip install -r requirements.txt
  5. Run the ConvoSentinel script:
    bash run_convosentinel.sh SEConvo/annotated_test.json outputs/message_si_preds.json outputs/message_se_preds.json outputs/conv_se_preds.json
    This script generates:
    • Message-level SI predictions: outputs/message_si_preds.json
    • Message-level SE predictions: outputs/message_se_preds.json
    • Conversation-level SE predictions: outputs/conv_se_preds.json
  6. By default, the script runs with cuda:0. Modify this in the script if necessary.

convosentinel's People

Contributors

lynneeai avatar

Stargazers

 avatar

Watchers

 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.