GithubHelp home page GithubHelp logo

lvhuanhuan109 / humordetection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amessadiqi/humordetection

0.0 0.0 0.0 5.94 MB

Multiple humor detection models with feature extraction using Numba.

License: MIT License

Python 100.00%

humordetection's Introduction

Humor Detector

Multiple humor detection models with feature extraction.

Requirements

Run the following command to install the required packages:

pip3 install -r requirements.txt

Build

This project uses Cython, so in order to use the Humor Features module you'll need to build it using this command:

python3 setup.py build_ext --inplace

Quick start

You can quickly start working with the Humor detector by importing HumorDetector object as following:

import pandas as pd
from HumorDetector import HumorDetector

df = pd.read_csv('data/dataset_final.csv', sep=',', encoding='ISO-8859-1', header=0)
HumorDetector(dataset=df).performance_overview()

This code will display the pre-built models performances. Humor detector will proceed directly to training the models using the pre-built Machine learning methods.

If you don't specify the dataset, Humor Detector will use the pre-trained models. You will need to specify the choosen Machine learning method.

from HumorDetector import HumorDetector

result = HumorDetector().predict('some humoristic short text.', 'Logistic Regression')
print(result)

humordetection's People

Contributors

amessadiqi 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.