Giter VIP home page Giter VIP logo

auprotk's Introduction

AUPROTK

Requirements are provided in the requirements.txt file. So you can basically install them using

pip freeze > requirements.txt

in your system or in a new virtualenv.

Code has all the functionalities to extract stylometric features from text and even to classify texts using sklearn classifiers. As it is now, it extracts stylometric features of the input texts and provides the output in a file.

A sample input is provided in input/

The only restriction is that the id (in the current setup tweet_id), needs to be unique.

A sample output is provided in output/

To run it, just do:

python3 main.py path/to/your/input path/to/output/file/that/the/program/creates

so, for instance,

python3 main ./input/sampleInput.txt ./output/sampleOutput.txt

The output is a correct jsonArray, so you can just load it with json.load and in each position of the array, you will have an object with the features in the "features" key, and the text id in the "tweet_id" key.

auprotk's People

Contributors

joansolcom avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jbaylisswagner

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.