Afonso Xavier Canosa Rodriguez

On philology, potatoes and construction.
Well, this is just my first approach to blog-writing. I want it to be the way to keep in touch with colleagues and friends.

info at canosarodriguez dotnet

Cosine distance and semantic relations
Following a previous post that illustrated the meaning of a word based on its context, a script to calculate the cosine distance among terms. The idea behind is that if you have enough data, semantic relations can be solved from context. As a practical application, given a place name, the cosine distance measures the proximity (or distance) of a geographical entity relative to two geographical features used as semantic tracts (e.g. to determine which entities are islands).

In the script linked above I use the data given as a toy example by Baroni,Bernardi, & Zamparelli (2014, pp. 248-250) to introduce the measure in terms of distributional semantics.
Subject: philology - Published 03-09-2018 21:47
Permanent link to this article
© by Abertal