Coder Social home page Coder Social logo

nicolas-le / psycholinguistics-of-filmcharacters-app Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 1.09 MB

This repo documents the code that used for web application of the project "The Personality of Gangsters - Researching Quentin Tarantino’s Character Design with the Use of Computer Based Psycholinguistic Analysis".

Python 22.98% CSS 21.51% HTML 55.51%
psycholinguistics liwc nltk flask d3js plotly tarantino filmanalytics webapp networkx-graph

psycholinguistics-of-filmcharacters-app's Introduction

The Personality of Gangsters

Web App - Researching Quentin Tarantino’s Character Design with the Use of Computer Based Psycholinguistic Analysis.

This Repo documents the web application of a research concerning the automated analysis of film scripts. The app is meant to be a visualization of the outcome and a tool for own questions and researches.

2.6 Web-App and database The web application was created by using “flask”, “HTML” and “CSS”, “d3”, “jquery” and “plotly”. Concerning the displayed graph, the edges are drawn in relation to the weight. The main feature is built by the underlying relational database which is filled with all the data generated as explained above. Database tables are for example “film”, “character”, “charts”, “network results” etc. The whole database and the app are coded to sustain the extensibility of the database.

The app is a product of various NLP based analyzes that are stored in a SQlite database. Because of copyright issues this database is not included at the moment.* The git concerning the analysis will be created soon.

EN: This work was realized as part of the course "Drama Mining und Film-Analyse" (summer semester 2019) under the supervision of Manuel Burghardt and Jochen Tiepmar at the University of Leipzig. (c) Nicolas Ruth, Julian Fuchs

Use

git clone https://github.com/Nicolas-le/Psycholinguistics-of-Filmcharacters.git

cd Psycholinguistics-of-Filmcharacters

pip3 install -r requirements.txt

python3 run.py

--> go to http://127.0.0.1:5000/

*Until the copyright issues are solved the database structure is documented in here.

CREATE TABLE film ( 
film_ID INTEGER NOT NULL PRIMARY KEY, 
title VARCHAR(30) NOT NULL UNIQUE, 
director VARCHAR(30), 
year INTEGER)

CREATE TABLE character (
nameC varchar(40),
text TEXT,
film_ID INTEGER,
PRIMARY KEY (nameC,film_ID),
FOREIGN KEY (film_ID) REFERENCES film)

CREATE TABLE structureGraph (
graph_ID varchar(2),
person1 varchar(40),
person2 varchar(40),
weight INTEGER NOT NULL,
film_ID INTEGER,
PRIMARY KEY (graph_ID,person1,person2),
FOREIGN KEY (film_ID) REFERENCES film)

CREATE TABLE networkResults (
algorithm varchar(30),
character varchar(40),
value FLOAT,
film_ID INTEGER,
PRIMARY KEY (algorithm,character,film_ID),
FOREIGN KEY (film_ID) REFERENCES film)

CREATE TABLE chart (
chart_ID varchar(4),
info varchar(30),
label varchar,
value INTEGER,
nameC varchar(40),
film_ID INTEGER,
PRIMARY KEY (chart_ID,info,label,film_ID),
FOREIGN KEY (nameC) REFERENCES character,
FOREIGN KEY (film_ID) REFERENCES film)


psycholinguistics-of-filmcharacters-app's People

Contributors

nicolas-le avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

llord1 jon-chun

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.