Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

twss.js to Haskell

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Setup.hs
Octocat-spinner-32 negative
Octocat-spinner-32 positive
Octocat-spinner-32 twss.cabal
README.markdown

twss.hs

Usage

import Twss

main = do
    pos <- readTrainingData "positive"
    neg <- readTrainingData "negative"
  input <- getLine
  print $ isTwss pos neg input
  print $ isTwssProbability pos neg input -- show the probability of this being a twss

Executable

Installing this will give you a twss executable:

twss <string>

Credits

This is a port of DanielRapp's twss.js by Aditya Bhargava.

Something went wrong with that request. Please try again.