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

A set of python modules for cornel movie-dialogs corpus with storm.

Abstract

This module include some classes extending storm ORM for cornel movie-dialogs corpus data.

Install

pip install storm                # if you not
pip install cornel-movie-dialogs-corpus-storm

Setup

  1. download corpus and unzip
  2. generate database and insert with generate-mdcorpus-database.py

for example:

generate-mdcorpus-database.py --corpus-dir "cornell movie-dialogs corpus" corpus.db

Usage

from mdcorpus.orm import *
from mdcorpus.parser import *

...

Class List

  • MovieTitlesMetadata
  • Genre
  • MovieGenreLine
  • MovieCharactersMetadata
  • MovieConversation
  • MovieLine
  • RawScriptUrl

Corpus Problem

This is memo when I dealt with corpus problems.

movie_titles_metadata.txt

  • I ignored an alphabet following year.
    • for example, line 34, 1989/I
  • I ignored duplication for genre data.
    • line 58, ['horror', 'mystery', 'mystery', 'sci-fi', 'sci-fi']

Code Problem

I use Python2.7 and I don’t know how to use codecs module.(Unicode HOWTO — Python 2.7ja1 documentation)

mime

convert text-code to utf-8 with Mi

before

cornell movie-dialogs corpus$ file --mime {(ls)}
README.txt:                    text/plain; charset=iso-8859-1
chameleons.pdf:                application/pdf; charset=binary
movie_characters_metadata.txt: text/plain; charset=iso-8859-1
movie_conversations.txt:       text/plain; charset=us-ascii
movie_lines.txt:               text/plain; charset=us-ascii
movie_titles_metadata.txt:     text/plain; charset=iso-8859-1
raw_script_urls.txt:           text/plain; charset=iso-8859-1

after

cornell movie-dialogs corpus$ file --mime {(ls)}
README.txt:                    text/plain; charset=utf-8
chameleons.pdf:                application/pdf; charset=binary
movie_characters_metadata.txt: text/plain; charset=utf-8
movie_conversations.txt:       text/plain; charset=us-ascii
movie_lines.txt:               text/plain; charset=us-ascii
movie_titles_metadata.txt:     text/plain; charset=utf-8
raw_script_urls.txt:           text/plain; charset=utf-8

movie_titles_metadata.txt

  • line 115, léon

movie_characters_metadata.txt

  • line 1727 - 1736, léon

result

sqlite> select * from movie_titles_metadata where title = 'léon';
sqlite> select * from movie_titles_metadata where title = 'l駮n';
114|l駮n|1994|8.6|204901
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.0

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
cornel-movie-dialogs-corpus-storm-0.1.1.tar.gz (5.4 kB) Copy SHA256 Checksum SHA256 Source Oct 31, 2015

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