| Module | Ariel::LabelUtils |
| In: |
lib/ariel/label_utils.rb
|
A set of methods for use when dealing with strings from labeled documents.
| S_LABEL | = | "<" |
| E_LABEL | = | ">" |
Extracts the labeled region representing the given structure node from the parent_extracted_node. A new Node::Extracted is returned to be added as a child to the parent_extracted_node. Used when loading labeled documents.
Returns an array containing a pair of regular expressions to match a start label tag and an end label tag. If the tag_contents is not modified the regular expressions will return any properly formatted label tag. The namespace to search for can also be modified. The returned regular expressions are case insensitive.