<jupyter_start><jupyter_text>search language is memorized in the class<jupyter_code>bn.lang
bn.getSynsets(Ids[0].id)
# don't change first searchlang
bn.lang<jupyter_output><empty_output><jupyter_text>getSynsets has lang parameter and can translate<jupyter_code># when you want to change lang, you use change_lang parameter
bn.getSynsets(Ids[0].id, ["EN", "ES"], change_lang=True)
# change first searchlang
bn.lang<jupyter_output><empty_output><jupyter_text>about Noun<jupyter_code>Ids = bn.getSynset_Ids("correr", "ES")
len(Ids)
Ids = bn.getSynset_Ids("correr", "ES", pos="NOUN")
len(Ids)
Ids = bn.getSynset_Ids("correr", "ES", source="WIKIDATA")
len(Ids)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1416058394160584, 'fraction_numerical': 0.00291970802919708, 'mean_word_length': 9.393939393939394, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '431681', 'license': 'MIT', 'n_tokens_mistral': 274, 'n_tokens_neox': 265, 'n_words': 51, 'path': 'examples/example_detail.ipynb', 'repo_name': 'jackee777/pybabelnet', 'size': '685'}