<jupyter_start><jupyter_text>QAnswer Query- frontend https://qanswer-frontend.univ-st-etienne.fr/faq- API: http://qanswer-core1.univ-st-etienne.fr/api/gerbil- ```shellcurl --data "query=Who is the wife of <NAME>&kb=dbpedia" http://qanswer-core1.univ-st-etienne.fr/api/gerbil```<jupyter_code>import requests
#lang: en, fr, de, it, es, zh
#kb: dbpedia, wikidata, dblp, freebase
data = {
    'query': "Which actor voiced the Unicorn in The Last Unicorn?",
    'lang': 'en',
    'kb': 'wikidata'
}
response = requests.post('http://qanswer-core1.univ-st-etienne.fr/api/gerbil', data=data)
response.json() if response else False
answer = (json.loads(response.json()
            .get("questions")[0]
            .get("question")
            .get("answers")
            .replace('\n', ''))
     .get("results").get("bindings")[0]
     .get("o1").get("value"))
answer
query = (response.json().get("questions")[0].get("question").get("language")[0])
query<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19897435897435897, 'fraction_numerical': 0.008205128205128205, 'mean_word_length': 3.954314720812183, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '421975', 'license': 'MIT', 'n_tokens_mistral': 368, 'n_tokens_neox': 360, 'n_words': 63, 'path': 'playground-qanwser.ipynb', 'repo_name': 'RomainClaret/mse.thesis.code', 'size': '981'}