akutuzov / webvectors

Web-ify your word2vec: framework to serve distributional semantic models online
http://vectors.nlpl.eu/explore/embeddings/
GNU General Public License v3.0
197 stars 49 forks source link

Implement frequency filter #30

Closed ananastii closed 5 years ago

ananastii commented 5 years ago

The new filter allows to choose which results to show based on their frequency, and also limits the number of visible results

ananastii commented 5 years ago

Single quote in .htmls (data-result ='{{ frequencies|tojson }}') is not a mistake. It is required to transfer and parse data with double qoute (frequencies) correctly (http://jinja.pocoo.org/docs/2.10/templates/#tojson).

The code is tested on data contains words with ' ("д'альбро")