Segments refactoring
Fixed anchor word counting bug

Feature extraction was only checking if the immediate parent of a text
node was an anchor, which is not always the case.