View Source Readability.Candidate.Scoring (readability v0.12.1)

Score HTML tree.

Summary

Functions

Score HTML tree by some algorithm that check children nodes, attributes, link densities, etcs..

Types

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

Functions

Link to this function

calc_score(html_tree, opts \\ [])

View Source
@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.