NAME

Data::Freq::Node - Represents a node of the result tree constructed by Data::Freq

VERSION

Version 0.01

METHODS

new

Usage:

my $root_node = Data::Freq::Node->new();

Constructs a node object in the "frequency tree" in Data::Freq.

add_subnode

Usage:

my $child_node = $parent_node->add_subnode('normalized text');

Adds a normalized value and returns the corresponding subnode.

If the normalized text appears for the first time under the parent node, a new node is created. Otherwise, the existing node is returned with its count incremented by 1.