Show HN: ngrep – grep plus word embeddings (Rust)
https://github.com/0xNaN/ngrep
I got curious about a simple question: regular expressions are purely syntactic, but what happens if you add just a little bit of semantics?To answer, I ended up building ngrep: a grep-like tool that extends regular expressions with a new operator ~(token) that matches a word by meaning using word2vec-style embeddings (FastText, GloVe, Wikipedia2Vec).A simple demo: "~(big)+ \b~(animal;0.35)+\b"...