Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created May 27, 2019 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/cf98e0eebc475c2cc1012818ad438b3b to your computer and use it in GitHub Desktop.
Save aravindpai/cf98e0eebc475c2cc1012818ad438b3b to your computer and use it in GitHub Desktop.
import numpy as np  
import pandas as pd
import re          
from bs4 import BeautifulSoup
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from nltk.corpus import stopwords   
from tensorflow.keras.layers import Input, LSTM, Embedding, Dense, Concatenate, TimeDistributed, Bidirectional
from tensorflow.keras.models import Model
from tensorflow.keras.callbacks import EarlyStopping
import warnings
pd.set_option("display.max_colwidth", 200)
warnings.filterwarnings("ignore")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment