bilbo.storage package

Submodules

bilbo.storage.document module

Document

class bilbo.storage.document.Document(str_value, xml_tree, tag, sections=None)

Bases: object

Class that describe a document.

Str_value:string value with tags
Xml_tree:lxml object
Section:cf section
genereDocumentPivot()

print the document stored

bilbo.storage.section module

section

class bilbo.storage.section.Section(str_value, section_naked, section_xml, tokens=None, token_str_lst=None, bibl_status=True, keys=None)

Bases: object

describe the section stored

Str_value:string value with tags
Section_naked:string value without tag
Section_xml:lxml object
Tokens:list of token object (cf token)
Token_str_lst:list of string token
Bibl_status:True if the section contain a bibl tag Fasle otherwise
check_constraint(constraint)
print_tokens()

print section

bilbo.storage.token module

Token

class bilbo.storage.token.Token(str_value, label, features=None, predict_label=None, separator=True)

Bases: object

Describe the token object

Str_value:string value
Label:label associated
Feature:list of feature
printToken()

Print token

tail
word

bilbo.storage.trie module

Trie

class bilbo.storage.trie.Trie(filename=None)

Bases: object

The Trie object.

add(sequence)

add element

data

Module contents

init storage