Giter VIP home page Giter VIP logo

deeplearning4nlp-tutorial's Introduction

Deep Learning for NLP - Tutorial

Hands-on tutorial on deep learning with a special focus on Natural Language Processing (NLP).

This GIT repository accompanies the UKP lectures and seminars on Deep Learning for Natural Language Processing. In contrast to other tutorials, this tutorial focuses on the usage of deep learning methods.

Deep Learning for NLP - Seminar - July 2017

In July 2017 I updated the slides to the most recent Python and Keras version. The slides as well as the source code is available in the folder 2017-07_Seminar. The code in the folder can be run with either Python 2.7 or Python 3.6, with Keras 2.0.5 and with Theano (0.9.0) or TensorFlow (1.2.1) as backend.

Four different deep learning models for NLP are covered in the folder:

  1. Feed Forward Architecture for Sequence Classification (e.g. POS, NER, Chunking)
  2. Convolutional Neural Network for Sentence / Text Classification (e.g. sentiment classification)
  3. Convolutional Neural Network for Relation Extraction (e.g. semantic relation extration)
  4. Long-Short-Term-Memory (LSTM)-Networks for Sequence Classificaiton

Deep Learning for NLP - Seminar - Nov. 2016

In November 2016 I gave a seminar at the University of Duisburg-Essen. The slides as well as the source code is available in the folder 2016-11_Seminar. In the seminar I use Python 2.7, Theano 0.8.2, and Keras 1.1.1 to model four different deep learning models for NLP:

  1. Feed Forward Architecture for Sequence Classification (e.g. POS, NER, Chunking)
  2. Convolutional Neural Network for Sentence / Text Classification (e.g. sentiment classification)
  3. Convolutional Neural Network for Relation Extraction (e.g. semantic relation extration)
  4. Long-Short-Term-Memory (LSTM)-Networks for Sequence Classificaiton

Deep Learning for NLP - Lecture - Oct. 2015

In October 2015 I gave a lecture for the UKP Department at the Technical University of Darmstadt. The lecture is structured in six parts and covers the basics about deep learning. In the lecture I use Python 2.7, Theano 0.6.0 and Keras 0.3.0 to model different applications of deep learning for NLP. The slides, the source code, and video recordings are available in the folder 2015-10_Lecture.

Contact

Contact person: Nils Reimers, [email protected]

http://www.ukp.tu-darmstadt.de/

http://www.tu-darmstadt.de/

Don't hesitate to send us an e-mail or report an issue, if something is broken (and it shouldn't be) or if you have further questions.

This repository contains experimental software and is published for the sole purpose of supporting the lectures.

deeplearning4nlp-tutorial's People

Contributors

betoboullosa avatar nreimers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deeplearning4nlp-tutorial's Issues

pb running NER_Keras.py code with Keras 1.0.3

Dear Nils,
First of all thanks a lot for the great tutorial. I'm learning a lot watching your videos and reading through your code.
I naively wanted to run our implementation of the SENNA model with Keras and cannot make it work even after trying many things and spending of lot of time on forums dedicated to Theano and Keras.
For the record, I think it has something to do with The FixEmbedding layer and/or my version of Keras==1.0.3. I'm running Python 3.5 but I fixed all print and unicode trivial issues in the code so it should not be a pb with compatibility with Python 3.

Here is the traceback:

Traceback (most recent call last):
File "NER_Keras.py", line 126, in
model.add(FixedEmbedding(output_dim=embeddings.shape[1], input_dim=embeddings.shape[0], input_length=n_in, weights=[embeddings]))
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/keras/models.py", line 114, in add
layer.create_input_layer(batch_input_shape, input_dtype)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/keras/engine/topology.py", line 341, in create_input_layer
self(x)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/keras/engine/topology.py", line 458, in call
self.build(input_shapes[0])
TypeError: build() takes 1 positional argument but 2 were given

Thanks for your help.
G.

requirements.txt for project

It would be nice to have a requirements.txt file for this project. The Keras and Lasagne APIs are constantly changing, and it seems that the current version of Keras on pip (Keras 0.3.2) doesn't work with this tutorial's code anymore.

For example, in FixedEmbedding.py, keras.utils.theano_utils no longer exists in Keras. A workaround to this issue is here.

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.