<jupyter_start><jupyter_text>What does the model look like before mapping?<jupyter_code>yaml.safe_dump(my_model, sys.stdout, default_flow_style=False)
yaml_mapped = scoped_mapping.map_from_yaml(my_model, my_selected_enum,
                                           print_enums     = True,
                                           bad_chars       = my_bad_chars,
                                           cat_name        = my_selected_enum,
                                           ontoprefix      = my_onto_prefix,
                                           query_fields    = my_query_fields,
                                           string_dist_arg = my_string_dist_arg,
                                           rr              = my_row_request)
my_best_acceptable = scoped_mapping.get_best_acceptable(yaml_mapped, max_string_dist=my_max_string_dist)

my_best_acceptable
no_acceptable_mappings = scoped_mapping.get_no_acceptable_mappings(yaml_mapped, my_best_acceptable)

no_acceptable_mappings
scoped_mapping.rewrite_yaml(my_model, my_selected_enum, my_best_acceptable)
yaml.safe_dump(my_model, sys.stdout, default_flow_style=False)<jupyter_output>classes:
  example:
    slot_usage: {}
    slots:
    - Taxon
    - FAO
    - Engineering
default_prefix: example
description: example
enums:
  Engineering_enum:
    permissible_values:
      Deletion:
        description: Deletion
      Insertion:
        description: Insertion
      plasmid:
        description: plasmid
  FAO_enum:
    permissible_values:
      Acrisols:
        description: Acrisols
      Andosols:
        description: Andosols
      Arenosols:
        description: Arenosols
      Cambisols:
        description: Cambisols
      Chernozems:
        description: Chernozems
      Ferralsols:
        description: Ferralsols
      Fluvisols:
        description: Fluvisols
      Gleysols:
        description: Gleysols
      Greyzems:
        description: Greyzems
      Gypsisols:
        description: Gypsisols
      Histosols:
        description: Histosols
      Kastanozems:
        description: Kastanozems
      Lithosols:
        description: Lithosols
      Luvisols:
[...]
{'fraction_non_alphanumeric': 0.051756007393715345, 'fraction_numerical': 0.0, 'mean_word_length': 1.9296346414073071, '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': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '640032', 'license': 'MIT', 'n_tokens_mistral': 620, 'n_tokens_neox': 604, 'n_words': 105, 'path': 'notebooks/copied/map_from_linkml_enums.ipynb', 'repo_name': 'turbomam/scoped-mapping', 'size': '2164'}