-
-
Save amankharwal/494e048fed46308d03a318a93f8c604c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import tensorflow | |
from tensorflow.keras import Sequential, Model, Input | |
from tensorflow.keras.layers import LSTM, Embedding, Dense, TimeDistributed, Dropout, Bidirectional | |
from tensorflow.keras.utils import plot_model | |
from numpy.random import seed | |
seed(1) | |
tensorflow.random.set_seed(2) | |
input_dim = len(list(set(data['Word'].to_list())))+1 | |
output_dim = 64 | |
input_length = max([len(s) for s in data_group['Word_idx'].tolist()]) | |
n_tags = len(tag2idx) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment