scrape v2.0.0 Scrape.Util.Tags

Calculate relevant keywords (aka tags) from a given Text.

Summary

Functions

Feed in any text with sufficient length and get a list of tags back. A rough accuracy for every tag is provided, too! The returned data structure is simply a map structured like this: [%{name: "bla", accuracy: 0.42}, ...]

Functions

from_text(text)
from_text(String.t) :: [%{name: String.t, accuracy: float}]

Feed in any text with sufficient length and get a list of tags back. A rough accuracy for every tag is provided, too! The returned data structure is simply a map structured like this: [%{name: "bla", accuracy: 0.42}, ...]

iex> Scrape.Util.Tags.from_text(“hello world”) [%{accuracy: 1, name: “world”}, %{accuracy: 1, name: “hello”}]