def get_questions_matrix_sum(questions, nlp):
	assert not isinstance(questions, basestring)
	nb_samples = len(questions)
	word_vec_dim = nlp(questions[0])[0].vector.shape[0]
	questions_matrix = np.zeros((nb_samples, word_vec_dim))
	for i in xrange(len(questions)):
		tokens = nlp(questions[i])
		for j in xrange(len(tokens)):
			questions_matrix[i,:] += tokens[j].vector

	return questions_matrix
Create a default HTTP fetcher instance
dataset/ETHPy150Open avisingh599/visual-qa/scripts/features.py/get_questions_matrix_sum--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/openid/fetchers.py/createHTTPFetcher