From ba34ad535191afff59c3f3706a251b7fd43d78d4 Mon Sep 17 00:00:00 2001 From: Valentyn N Sichkar <34546286+sichkar-valentyn@users.noreply.github.com> Date: Tue, 14 Aug 2018 15:36:36 +0300 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 131cd89..1ad9c7e 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ Experimental results (figures and tables on this page): * Processing sentences and finding cosine distances * Approximation of functions via linear equations +
+ ### Processing sentences and finding cosine distances Implementing the task about processing sentences. Finding cosine distances between first sentence and all others. For implementation a two-dimensional matrix is created, where rows are sentences (objects) and columns are words (properties).
Matrix is filled with numbers that corresponds to number of times every word (property) were met in every sentence. Then, after matrix was built, distances are calculated between first vector (row) and all others. Calculation is done with the help of **'scipy.spatial.distance.cosine'** function.