Complete the function euclidean_distance() to calculate the Euclidean distance between two sentences using their corresponding bag-of-words representations provided below.
The function's input consists of two lists, each list consisting of integers. The output should be the Euclidean distance as a float, rounded to 4 decimals.
Example of calculation:
doc_1 = "Euclidean distance is a semantic similarity metric."
doc_2 = "Euclidean distance is not a lexical similarity metric"Their corresponding bag-of-words representations as input:
doc_1 = [1, 1, 0, 1, 0, 1, 2]
doc_2 = [1, 1, 1, 1, 1, 0, 2]The Euclidean distance between them is 1.7321.