NLP - Text Similarity and Search
What is the output of the following Python code snippet?
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
vec1 = np.array([[1, 0, 1]])
vec2 = np.array([[0, 1, 0]])
result = cosine_similarity(vec1, vec2)
print(result[0][0])
