Vault neighbors - note connections recommendation script

I came up with a Python script that takes a note title and returns a list of notes that can be treated as a recommendation for out-links in the input note.
It is based on classic NLP methods like Term Frequency and Nearest Neighbors algorithm. I am currently using it to research novel semantic connections in my vault. I thought that maybe some of you may want to play with it as well.

Any feedback is most welcomed.

3 Likes

Added -pk --peek argument that allows user to look up note contents after text-preprocessing applied by the script. This is helpful to make sure that regex patterns defined in nnpatterns.txt work as they intended.