<jupyter_start><jupyter_text>Visualizations<jupyter_code>[feature for feature in sexual_features if "aspect" in feature]
[feature for feature in sexual_features if "ascendant" in feature]
df.fillna(0, inplace = True )
verses_without_polarity_df = df.loc[(df[sexual_features].sum(axis = 1) >= 1) & (df[['blessed-aspect',
 'positive-aspect',
 'neutral-aspect',
 'negative-aspect',
 'condemned-aspect']].sum(axis = 1) == 0) ]


verses_without_polarity_df
df.loc["b.GEN.005.003"][['blessed-aspect',
 'positive-aspect',
 'neutral-aspect',
 'negative-aspect',
 'condemned-aspect']].sum()
df.loc["b.GEN.005.003"][sexual_features].sum()
df.loc[(df[sexual_features].sum(axis = 1) >= 1) & (df[['blessed-aspect',
 'positive-aspect',
 'neutral-aspect',
 'negative-aspect',
 'condemned-aspect']].sum(axis = 1) == 0) ]

verses_without_polarity_df
verses_without_polarity_df.index.tolist()
xml_ids_lt = documento_root_bible.xpath('//tei:ab//@xml:id', namespaces = specific_namespaces, with_tail = True)

xml_ids_lt[0:10]
s = input()
s
complete_str = ""

for verse_id in verses_without_polarity_df.index:

    print(verse_id)
    verse_text = "".join(documento_root_bible.xpath('//tei:ab[@xml:id = "' + verse_id+ '"]//text()', namespaces = specific_namespaces, with_tail = True))
    annotation = input(verse_id + verse_text)
    if annotation != "":
        complete_str += '<spanGrp type="theme" inst="#' + verse_id + '>\n<span ana="' + annotation + '-aspect">\n<certainty match="@ana" locus="value" cert="high" given="text"/>\n</span>\n</spanGrp>'
complete_str
xml_ids_lt
    print()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.181875, 'fraction_numerical': 0.015, 'mean_word_length': 5.900862068965517, 'pattern_counts': {'":': 1, '<': 10, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '238779', 'license': 'CC-BY-4.0', 'n_tokens_mistral': 641, 'n_tokens_neox': 605, 'n_words': 96, 'path': 'code/python/notebooks/checking_polarity_sentiment.ipynb', 'repo_name': 'morethanbooks/XML-TEI-Bible', 'size': '1600'}