Skip to content

Instantly share code, notes, and snippets.

View jordanspooner's full-sized avatar

Jordan Spooner jordanspooner

View GitHub Profile
@jordanspooner
jordanspooner / bilstm.py
Last active May 23, 2024 06:11
BiLSTM Architecture
#=================================
# Sentence-level QE -- BiRNN model
#=================================
#
## Inputs:
# 1. Sentences in src language (shape: (mini_batch_size, line_words))
# 2. Parallel machine-translated documents (shape: (mini_batch_size, line_words))
#
## Output:
# 1. Sentence quality scores (shape: (mini_batch_size,))