readability v0.4.0 Readability.Candidate.Scoring

Score html tree

Summary

Functions

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

Types

html_tree :: tuple | list
options :: list

Functions

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

class_weight(attrs)