Git Product home page Git Product logo

petdetection's Introduction

PETDetection

This is the accompanying code for Searching for PETs: An Analysis on Using Distributional and Sentiment-Based Methods to Find Potentially Euphemistic Terms.

How to download the code

To download the code, there are two options:

  • Using git clone may be the most straightforward. The word2vec models used are over the Github size limit (~3GB combined), so I used Git LFS (Large File Storage) to upload them. This means that if you just download the repository as a .zip file, some of the files will only be pointers to where they're stored on the Git cloud storage. On the other hand, using git clone seems to automatically download the files from the cloud storage during the cloning process.
  • If git clone doesn't work for you, the files can also be found here. Unzip them into the data file, and it should work.

How to use the code

There are two notebooks. Single_Sentence_Euph_Detection.ipynb is the one which is intended for users to try. To use it, run the first 3 chunks, and then use the fourth chunk to test out your input text. Note that there are some required packages, which I note (along with these instructions) in the notebook.

The other notebook, Euph_Detection_6-11.ipynb, is the one used to generate the results shown in the paper, and is mostly for reference.

Feedback

Please let us know if anything doesn't work for you. If it's needed, the code will be continuously updated to improve performance/ease of use.

petdetection's People

Contributors

marsgav avatar pl464 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

bondfeld

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.