All Projects → ottokart → beam_search

ottokart / beam_search

Licence: MIT license
Beam search for neural network sequence to sequence (encoder-decoder) models.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to beam search

Nlp made easy
Explains nlp building blocks in a simple manner.
Stars: ✭ 232 (+648.39%)
Mutual labels:  seq2seq, beam-search
neural-chat
An AI chatbot using seq2seq
Stars: ✭ 30 (-3.23%)
Mutual labels:  seq2seq, beam-search
minimal-nmt
A minimal nmt example to serve as an seq2seq+attention reference.
Stars: ✭ 36 (+16.13%)
Mutual labels:  seq2seq, beam-search
Seq2seq chatbot
基于seq2seq模型的简单对话系统的tf实现,具有embedding、attention、beam_search等功能,数据集是Cornell Movie Dialogs
Stars: ✭ 308 (+893.55%)
Mutual labels:  seq2seq, beam-search
Tf Seq2seq
Sequence to sequence learning using TensorFlow.
Stars: ✭ 387 (+1148.39%)
Mutual labels:  seq2seq, beam-search
Poetry Seq2seq
Chinese Poetry Generation
Stars: ✭ 159 (+412.9%)
Mutual labels:  seq2seq, beam-search
transformer
Neutron: A pytorch based implementation of Transformer and its variants.
Stars: ✭ 60 (+93.55%)
Mutual labels:  seq2seq, beam-search
Pytorch Chatbot
Pytorch seq2seq chatbot
Stars: ✭ 336 (+983.87%)
Mutual labels:  seq2seq, beam-search
Im2latex
Image to LaTeX (Seq2seq + Attention with Beam Search) - Tensorflow
Stars: ✭ 342 (+1003.23%)
Mutual labels:  seq2seq, beam-search
Seq2seq chatbot new
基于seq2seq模型的简单对话系统的tf实现,具有embedding、attention、beam_search等功能,数据集是Cornell Movie Dialogs
Stars: ✭ 144 (+364.52%)
Mutual labels:  seq2seq, beam-search
Seq2seq
基于Pytorch的中文聊天机器人 集成BeamSearch算法
Stars: ✭ 200 (+545.16%)
Mutual labels:  seq2seq, beam-search
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 (+629.03%)
Mutual labels:  seq2seq
chatbot
Seq2Seq Chatbot with attention mechanism
Stars: ✭ 19 (-38.71%)
Mutual labels:  seq2seq
TextSumma
reimplementing Neural Summarization by Extracting Sentences and Words
Stars: ✭ 16 (-48.39%)
Mutual labels:  seq2seq
Nlp Tools
😋本项目旨在通过Tensorflow基于BiLSTM+CRF实现中文分词、词性标注、命名实体识别(NER)。
Stars: ✭ 225 (+625.81%)
Mutual labels:  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 (+716.13%)
Mutual labels:  seq2seq
Paddlenlp
NLP Core Library and Model Zoo based on PaddlePaddle 2.0
Stars: ✭ 212 (+583.87%)
Mutual labels:  seq2seq
Natural Language Processing With Tensorflow
Natural Language Processing with TensorFlow, published by Packt
Stars: ✭ 222 (+616.13%)
Mutual labels:  seq2seq
Headliner
🏖 Easy training and deployment of seq2seq models.
Stars: ✭ 221 (+612.9%)
Mutual labels:  seq2seq
tensorflow-chatbot-chinese
網頁聊天機器人 | tensorflow implementation of seq2seq model with bahdanau attention and Word2Vec pretrained embedding
Stars: ✭ 50 (+61.29%)
Mutual labels:  seq2seq

Beam search for neural network sequence to sequence (encoder-decoder) models.

Usage example:

from beam_search import beam_search

# Load model and vocabularies...
input_text = "Hello World !"
X = [encoder_vocabulary.get(t, encoder_vocabulary['<UNK>']) for t in input_text.split()]

hypotheses = beam_search(model.initial_state_function, model.generate_function, X, decoder_vocabulary['<S>'], decoder_vocabulary['</S>'])

for hypothesis in hypotheses:

    generated_indices = hypothesis.to_sequence_of_values()
    generated_tokens = [reverse_decoder_vocabulary[i] for i in generated_indices]

    print(" ".join(generated_tokens))`
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].