This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

udon

Udon is a text normalizer for lengthened English expression having repeating letters.

(e.g., Udon converts “cooooooooooooooollllllllllllll” to “cool”)

This module is based on the following paper:

Samuel Brody and Nicholas Diakopoulos. Cooooooooooooooollllllllllllll!!!!!!!!!!!!!! using word lengthening to detect sentiment in microblogs. In EMNLP2011, pp. 562-570, 2011.

http://aclweb.org/anthology//D/D11/D11-1052.pdf

Installation

$ pip install udon

Usage

Import udon

>>> import udon

Normalize sentence

>>> udon.normalize_sentence('you are coooolll!!!')
you are cool!
  • normalize_sentence(str)

Normalize sentence

>>> udon.normalize_word('okayyyyy')
okay
  • normalize_word(str)

Shorten repeated substring until threshould without dictionary

>>> udon.cut_repeat('mamisaaaaaan', 1)
mamisan
>>> udon.cut_repeat('okayyyyy', 2)
okayy
  • cut_repeat(str, threshould)
    • Note that this method don’t use a lengthened expression normalize table (e.g., cooll -> cool). If you want to normalize such expression, use normalize_word() or normalize_sentence() method.

TODO

  • Support Japanese lengthened expressions

Contributions are welcome!

License

  • This module is licensed under MIT License.

CHANGES

0.1.1 (2014-03-30)

Available on Python 3.x

0.1 (2014-03-14)

First release.

Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
udon-0.1.1.tar.gz (6.2 kB) Copy SHA256 Checksum SHA256 Source Mar 29, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting