Last active
February 10, 2024 08:25
-
-
Save pranjalAI/a8316ca581cc48042658728ebebbc5cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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