readability v0.1.0 Readability.Candidate.Scoring

Score html tree

Link to this section Summary

Functions

Score html tree by some algorithm that check children nodes, attributes, link densities, etcs.. options -> weight_classes :: boolean, calculate weight class

Link to this section Types

Specs

html_tree() :: tuple() | list()

Specs

options() :: list()

Link to this section Functions

Link to this function

calc_score(html_tree, opts \\ [])

Specs

calc_score(html_tree(), options()) :: number()

Score html tree by some algorithm that check children nodes, attributes, link densities, etcs.. options -> weight_classes :: boolean, calculate weight class

Link to this function

class_weight(attrs)