Skip to content

Instantly share code, notes, and snippets.

@pranjalAI
Last active February 10, 2024 08:25
Show Gist options
  • Save pranjalAI/a8316ca581cc48042658728ebebbc5cd to your computer and use it in GitHub Desktop.
Save pranjalAI/a8316ca581cc48042658728ebebbc5cd to your computer and use it in GitHub Desktop.
questions_for_token = list()
answers_for_token = list()
c=1
for con in docs:
if(c==2868):
pass
else:
con=con.strip().split("\t")
questions_for_token.append(con[0])
answers_for_token.append(con[1])
c+=1
embed_size=100 #define the vector size based on word your embedding
max_features=6000 #to restrict your number of unique words
maxlen=100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment