<jupyter_start><jupyter_text>Exemples of schema builders<jupyter_code>import logging
logging.basicConfig()
logger = logging.getLogger('dependencynet')
logger.setLevel(logging.DEBUG)
import sys
sys.path.append("../")  # go to parent dir to load depencencynet classes
from dependencynet.schema import SchemaBuilder, Schema
schema = SchemaBuilder().level('area', 'A').level('country', 'C').level('town', 'T').resource('monument', 'M').render()
logger.debug(schema)
logger.debug(schema.levels)
logger.debug(schema.resources)
keys = schema.levels_keys()
logger.debug(keys)
marks = schema.levels_marks()
logger.debug(marks)
keys = schema.resources_keys()
logger.debug(keys)
mark = schema.resource_mark('monument')
logger.debug(mark)<jupyter_output>DEBUG:dependencynet:M
{'fraction_non_alphanumeric': 0.14941022280471822, 'fraction_numerical': 0.0, 'mean_word_length': 8.317073170731707, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '367064', 'license': 'MIT', 'n_tokens_mistral': 249, 'n_tokens_neox': 236, 'n_words': 46, 'path': 'examples/example-schema.ipynb', 'repo_name': 'cfalguiere/dependencynet', 'size': '763'}