# Faqtorisation

## Faqtorisation contains the code regarding the generation and the clustering of questions about a text, it is built using the fused gromov-wasserstein distance and a version of the Kurisu-G² algorithm. the fused gromov-wasserstein distance is used to cluster the questions based on how a graph is deformed due to a question. That way it is possible to cluster specific questions if we already have a text that talks about the same thematic. 


## Directory Structure 

- The main code is contained in the `src/faqtorisation/faq_src` directory. The streamlit pages are contained in `src/faqtorisation/pages` and allows to use the main functions of the code.

- This directory does not use the optimization on the FGW built in the `kt_gen` repo since it was developped after but it is fairly easy to connect the pieces. 


