article = """

This app is developed by IIC - Instituto de Ingeniería del Conocimiento as part of the Somos PLN Hackaton 2022. The objective of this app is to expand the existing tools regarding long form question answering in Spanish. In fact, multiple novel methods (in Spanish) have been introduced to build this app. The reason for including audio as a possible input and always as an output is because we wanted to make the App much more accessible to people that cannot read or write. Below you can find all the pieces that form the system. 1. Speech2Text: For this we finedtuned a multilingual Wav2Vec2, as explained in the attached link. We use this model to process audio questions. 2. Dense Passage Retrieval for Context: Dense Passage Retrieval is a methodology developed by Facebook which is currently the SoTA for Passage Retrieval, that is, the task of getting the most relevant passages to answer a given question with. You can find details about how it was trained on the link attached to the name. 3. Dense Passage Retrieval for Question: It is actually part of the same thing as the above. For more details, go to the attached link. 4. Sentence Encoder Ranker: To rerank the candidate contexts retrieved by dpr for the generative model to see. This also selects the top 5 passages for the model to read, it is the final filter before the generative model. 5. Generative Long-Form Question Answering Model: For this we used either mT5 (the one attached) or mBART. This generative model receives the most relevant passages and uses them to generate an answer to the question. In the attached link there are more details about how we trained it etc. On the other hand, we uploaded, and in some cases created, datasets in Spanish to be able to build such a system. 1. Spanish Biomedical Crawled Corpus. Used for finding answers to questions about biomedicine. (More info in the link.) 2. LFQA_Spanish. Used for training the generative model. (More info in the link.) 3. SQUADES. Used to train the DPR models. (More info in the link.) 4. BioAsq22-Spanish. Used to train the DPR models. (More info in the link.) 5. SQAC (Spanish Question Answering Corpus). Used to train the DPR models. (More info in the link.)

""" # 1HOzvvgDLFNTK7tYAY1dRzNiLjH41fZks # 1kvHDFUPPnf1kM5EKlv5Ife2KcZZvva_1 description = """

BioMedIA: Abstractive Question Answering of BioMedical Domain in Spanish

Esta aplicación consiste en sistemas de búsqueda del Estado del Arte en Español junto con un modelo generativo entrenado para componer una respuesta a preguntas a partir de una serie de contextos. """ examples = [ [ "¿Cuáles son los efectos secundarios más ampliamente reportados en el tratamiento de la enfermedad de Crohn?", "vacio.flac", "vacio.flac", 60, 8, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Para qué sirve la tecnología CRISPR?", "vacio.flac", "vacio.flac", 60, 8, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Qué es el lupus?", "vacio.flac", "vacio.flac", 60, 8, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Por qué sentimos ansiedad?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Qué es la gripe aviar?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Qué es la tecnología CRISPR?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Cómo se genera la apendicitis?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Qué es la mesoterapia?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Qué alternativas al Paracetamol existen para el dolor de cabeza?", "vacio.flac", "vacio.flac", 80, 8, 3, 1.0, 250, "wav2vec2-iic", False ], [ "¿Cuáles son los principales tipos de disartria del trastorno del habla motor?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False ], [ "¿Es la esclerosis tuberosa una enfermedad genética?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False ], [ "¿Cuál es la función de la proteína Mis18?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False ], [ "¿Cuáles son las principales causas de muerte?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False ], [ "¿Qué deficiencia es la causa del síndrome de piernas inquietas?", "vacio.flac", "vacio.flac", 50, 8, 3, 1.0, 250, "wav2vec2-iic", False ], [ "¿Cuál es la función del 6SRNA en las bacterias?", "vacio.flac", "vacio.flac", 60, 8, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Por qué los humanos desarrollamos diabetes?", "vacio.flac", "vacio.flac", 50, 10, 3, 1.0, 250, "wav2vec2-iic", False, ], [ "¿Qué factores de riesgo aumentan la probabilidad de sufrir un ataque al corazón?", "vacio.flac", "vacio.flac", 80, 8, 3, 1.0, 250, "wav2vec2-iic", False ], [ "¿Cómo funcionan las vacunas?", "vacio.flac", "vacio.flac", 90, 8, 3, 1.0, 250, "wav2vec2-iic", False ], [ "¿Tienen conciencia los animales?", "vacio.flac", "vacio.flac", 70, 8, 3, 1.0, 250, "wav2vec2-iic", False ], ]