yuanjunchai commited on
Commit
2d93a92
·
1 Parent(s): 8249632

add application files

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -263,7 +263,7 @@ def averaged_glove_embeddings_gdrive(sentence, word_index_dict, embeddings, mode
263
  5. Return averaged embeddings
264
  (30 pts)
265
  """
266
- # embedding = np.zeros(int(model_type.split("d")[0]))
267
 
268
  # # Split sentence into words
269
  # words = sentence.split()
@@ -282,8 +282,6 @@ def averaged_glove_embeddings_gdrive(sentence, word_index_dict, embeddings, mode
282
  # embedding /= valid_words
283
 
284
  # return embedding
285
- embedding_dim = np.zeros(int(model_type.split("d")[0]))
286
- embedding = np.zeros(embedding_dim)
287
 
288
  words = sentence.split()
289
 
 
263
  5. Return averaged embeddings
264
  (30 pts)
265
  """
266
+ embedding = np.zeros(int(model_type.split("d")[0]))
267
 
268
  # # Split sentence into words
269
  # words = sentence.split()
 
282
  # embedding /= valid_words
283
 
284
  # return embedding
 
 
285
 
286
  words = sentence.split()
287