All Projects → applenob → Rnn For Joint Nlu

applenob / Rnn For Joint Nlu

Tensorflow implementation of "Attention-Based Recurrent Neural Network Models for Joint Intent Detection and Slot Filling" (https://arxiv.org/abs/1609.01454)

Projects that are alternatives of or similar to Rnn For Joint Nlu

Chinese Chatbot
中文聊天机器人,基于10万组对白训练而成,采用注意力机制,对一般问题都会生成一个有意义的答复。已上传模型,可直接运行,跑不起来直播吃键盘。
Stars: ✭ 124 (-55.87%)
Mutual labels:  jupyter-notebook, seq2seq
Tensorflow Ml Nlp
텐서플로우와 머신러닝으로 시작하는 자연어처리(로지스틱회귀부터 트랜스포머 챗봇까지)
Stars: ✭ 176 (-37.37%)
Mutual labels:  jupyter-notebook, seq2seq
Mlmodels
mlmodels : Machine Learning and Deep Learning Model ZOO for Pytorch, Tensorflow, Keras, Gluon models...
Stars: ✭ 145 (-48.4%)
Mutual labels:  jupyter-notebook, nlu
Scite
Causality Extraction based on Self-Attentive BiLSTM-CRF with Transferred Embeddings
Stars: ✭ 22 (-92.17%)
Mutual labels:  jupyter-notebook, sequence-labeling
Nlp made easy
Explains nlp building blocks in a simple manner.
Stars: ✭ 232 (-17.44%)
Mutual labels:  jupyter-notebook, seq2seq
Spark Nlp Models
Models and Pipelines for the Spark NLP library
Stars: ✭ 88 (-68.68%)
Mutual labels:  jupyter-notebook, nlu
Rnn For Joint Nlu
Pytorch implementation of "Attention-Based Recurrent Neural Network Models for Joint Intent Detection and Slot Filling" (https://arxiv.org/abs/1609.01454)
Stars: ✭ 176 (-37.37%)
Mutual labels:  jupyter-notebook, nlu
Practical Pytorch
Go to https://github.com/pytorch/tutorials - this repo is deprecated and no longer maintained
Stars: ✭ 4,329 (+1440.57%)
Mutual labels:  jupyter-notebook, seq2seq
Text summarization with tensorflow
Implementation of a seq2seq model for summarization of textual data. Demonstrated on amazon reviews, github issues and news articles.
Stars: ✭ 226 (-19.57%)
Mutual labels:  jupyter-notebook, seq2seq
Natural Language Processing With Tensorflow
Natural Language Processing with TensorFlow, published by Packt
Stars: ✭ 222 (-21%)
Mutual labels:  jupyter-notebook, seq2seq
Seq2seq Signal Prediction
Signal forecasting with a Sequence-to-Sequence (seq2seq) Recurrent Neural Network (RNN) model in TensorFlow - Guillaume Chevalier
Stars: ✭ 890 (+216.73%)
Mutual labels:  jupyter-notebook, seq2seq
Speech recognition with tensorflow
Implementation of a seq2seq model for Speech Recognition using the latest version of TensorFlow. Architecture similar to Listen, Attend and Spell.
Stars: ✭ 253 (-9.96%)
Mutual labels:  jupyter-notebook, seq2seq
Deeplearningmugenknock
でぃーぷらーにんぐを無限にやってディープラーニングでDeepLearningするための実装CheatSheet
Stars: ✭ 684 (+143.42%)
Mutual labels:  jupyter-notebook, seq2seq
Kaggle Web Traffic
1st place solution
Stars: ✭ 1,641 (+483.99%)
Mutual labels:  jupyter-notebook, seq2seq
Practical seq2seq
A simple, minimal wrapper for tensorflow's seq2seq module, for experimenting with datasets rapidly
Stars: ✭ 563 (+100.36%)
Mutual labels:  jupyter-notebook, seq2seq
Poetry Seq2seq
Chinese Poetry Generation
Stars: ✭ 159 (-43.42%)
Mutual labels:  jupyter-notebook, seq2seq
Text summurization abstractive methods
Multiple implementations for abstractive text summurization , using google colab
Stars: ✭ 359 (+27.76%)
Mutual labels:  jupyter-notebook, seq2seq
Nmtpytorch
Sequence-to-Sequence Framework in PyTorch
Stars: ✭ 392 (+39.5%)
Mutual labels:  jupyter-notebook, seq2seq
Screenshot To Code
A neural network that transforms a design mock-up into a static website.
Stars: ✭ 13,561 (+4725.98%)
Mutual labels:  jupyter-notebook, seq2seq
Pytorch Seq2seq
Tutorials on implementing a few sequence-to-sequence (seq2seq) models with PyTorch and TorchText.
Stars: ✭ 3,418 (+1116.37%)
Mutual labels:  jupyter-notebook, seq2seq

RNN-for-Joint-NLU

模型介绍

使用tensorflow r1.3 api,Encoder使用tf.nn.bidirectional_dynamic_rnn实现,Decoder使用tf.contrib.seq2seq.CustomHelpertf.contrib.seq2seq.dynamic_decode实现。

原作者Bing Liu的Tensorflow实现

我的实现相对比较简单,用于学习目的。

使用

python main.py

输出:

[Epoch 27] Average train loss: 0.0
Input Sentence        :  ['what', 'are', 'the', 'flights', 'and', 'prices', 'from', 'la', 'to', 'charlotte', 'for', 'monday', 'morning']
Slot Truth            :  ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-fromloc.city_name', 'O', 'B-toloc.city_name', 'O', 'B-depart_date.day_name', 'B-depart_time.period_of_day']
Slot Prediction       :  ['O', 'O', 'O', 'O', 'O', 'O', 'O', 'B-fromloc.city_name', 'O', 'B-toloc.city_name', 'O', 'B-depart_date.day_name', 'B-depart_time.period_of_day']
Intent Truth          :  atis_flight
Intent Prediction     :  atis_flight#atis_airfare
Intent accuracy for epoch 27: 0.969758064516129
Slot accuracy for epoch 27: 0.9782146713160718
Slot F1 score for epoch 27: 0.977950943062074
[Epoch 28] Average train loss: 0.0
Input Sentence        :  ['show', 'me', 'the', 'last', 'flight', 'from', 'love', 'field']
Slot Truth            :  ['O', 'O', 'O', 'B-flight_mod', 'O', 'O', 'B-fromloc.airport_name', 'I-fromloc.airport_name']
Slot Prediction       :  ['O', 'O', 'O', 'B-flight_mod', 'O', 'O', 'B-fromloc.airport_name', 'I-fromloc.airport_name']
Intent Truth          :  atis_flight
Intent Prediction     :  atis_flight
Intent accuracy for epoch 28: 0.9717741935483871
Slot accuracy for epoch 28: 0.9794670271393975
Slot F1 score for epoch 28: 0.9792847025495751

细节

博客文章:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].