Git Product home page Git Product logo

lo-llull-electric's Introduction

[Version en Castellano abajo] - [Scroll down for english version]

alt tag

Ramon Llull bot elèctric https://twitter.com/lollullelectric

Per a una introducció general del projecte: http://www.bsc.es/viz/llull/

Dins de l'any Llull, aquest projecte fa servir textos originals de Ramon Llull per l'entrenament d'una Xarxa Neuronal Recurrent (RNN) que es fa servir per generar twits de manera automàtica. El procés es realitza de manera totalment no supervisada. Fem servir una Long-Short Term Memory (LSTM) per a la capa RNN, trobareu una bona introducció a les LSTM aquí.

Hem inclòs una carpeta amb alguns textos de Ramon Llull per fer l'entrenament de la RNN. Canviant únicament el material d'entrenament la xarxa aprèn l'estil d'un altre autor. Podeu provar-ho fent servir el text d'unes 200 cançons de Bob Dylan que també hem afegit.

Instal·lació

Descarregar el ZIP de gihub, o fer

$ git clone https://github.com/arturgs/lo-llull-electric.git

Dependències:

Per poder executar el projecte necessitareu també tenir instal·lats

Keras : Llibreria d'alt nivell per gestionar la RNN.

Theano o Tensorflow : Llibreries de baix nivell utilitzades per Keras, només cal tenir instal·lada una de les dues (Recomanable: disposar d'una GPU i instal·lar les version per GPU d'aquestes llibreries).

Tweepy : Gestiona l'API de Twitter

(Altres dependències s'instal·len automàticament fent servir pip o Anaconda per a la instal·lació de paquets.)

Execució

[NOTA: haureu de crear el vostre compte de Twitter propi per fer servir tot el projecte.]

Per executar l'entrenament de la RNN feu

$ python train_llull.py

Aquesta és la part més costosa computacionalment del projecte. El procés d'entrenament genera un conjunt de RNN, progresivament amb menys error. Aquestes RNN es fan servir a l'hora de generar els tweets, executant

$ tweet.sh

Altres recursos

A la premsa



alt tag

Ramon Llull bot eléctrico https://twitter.com/lollullelectric

Para una introducción general del proyecto: http://www.bsc.es/viz/llull/index_es.html

Dentro del año Llull, este proyecto utiliza textos originales de Ramon Llull para el entrenamiento de una Red Neuronal Recurrente (RNN) que se utiliza para la generación automática de tweets. El proceso se realiza de manera totalmente no supervisada. Utilizamos una Long-Short Term Memory (LSTM) para la capa RNN, encontraréis una buena introducción a las LSTM aquí.

Hemos incluido una carpeta con algunos textos de Ramon Llull para realizar el entrenamiento de la RNN. Cambiando únicamente el material de entreno, la Red aprende el estilo de otro autor. Podéis probarlo utilizando el texto de unas 200 canciones de Bob Dylan que también incluimos en el proyecto.

Instalación

Descargar el ZIP de gihub, o

$ git clone https://github.com/arturgs/lo-llull-electric.git

Dependencias:

Para poder ejecutar el proyecto necesitaréis tener instalados:

Keras : Librería de alto nivel para gestionar la RNN.

Theano o Tensorflow : Librerías de bajo nivel utilizadas por Keras, solo necesitáis tener instalada una de las dos (Recomendable: disponer de una GPU e instalar la versión para GPU de estas librerias).

Tweepy : Gestiona la API de Twitter

(Cualquier otra dependencia se instala automaticamente utilizando pip o Anaconda para la instalación de paquetes.)

Ejecución

[NOTA: necesitaréis crear vuestra propia cuenta de Twitter para utilizar todo el proyecto.]

Para ejecutar el entrenamiento de la RNN

$ python train_llull.py

Esta es la parte más costosa computacionalmente de todo el proyecto. El proceso de entrenamiento genera un conjunto de RNN, progresivamente con menos error. Estas RNNs se utilizan para generar tweets, ejecutando

$ tweet.sh

Otros recursos

En prensa



alt tag

Ramon Llull electric bot https://twitter.com/lollullelectric

Inside the celebrations of the aniversary of Ramon Llull, this project takes his original texts to train a Recurrent Neural Network (RNN) used to automatically generate tweets. This proces is totally unsupervised. We use a Long-Short Term Memory (LSTM) for the RNN layer, you'll find an excellent introduction to LSTMs here.

We have included some texts by Ramon Llull for the RNN training. Change only the training material, and the NN will learn any other author's style. You can try this yourself with more than 200 songs by Bob Dylan included also in the project's folder.

Instalation

Just download the ZIP from gihub, or  

$ git clone https://github.com/arturgs/lo-llull-electric.git

Dependencies:

You will need to install these libraries

Keras : Top level library for managing RNN.

Theano o Tensorflow : Low level NN libraries used by Keras. You only need one of these two. (Recommended: use a GPU and install the corresponding GPU versions of these libraries.)

Tweepy : Manager for Twitter's API

(Any other dependencies should be automatically installed by pip or Anaconda.)

Execution

[NOTE: you'll need your own Twitter account to run the full project.]

To start the training proces of the RNN

$ python train_llull.py

This is by far the most computationally-demanding part of the project. The training process will generate a set of RNN, progressively more accurate. These RNNs are used to write tweets, running

$ tweet.sh

Other resources

On the press

lo-llull-electric's People

Contributors

fercook avatar arturgs avatar

Watchers

 avatar

Forkers

b-rich

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.