readability v0.9.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

Link to this type html_tree()
html_tree() :: tuple | list
Link to this type options()
options() :: list

Link to this section Functions

Link to this function calc_score(html_tree, opts \\ [])
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)