Readability.Candidate.Scoring (readability2 v0.7.0)

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

@type html_tree() :: tuple() | list()
@type options() :: list()

Link to this section Functions

Link to this function

calc_score(html_tree, opts \\ [])

@spec 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)