## edited summa (textrank) summa is a textrank python implementation (https://github.com/summanlp/textrank). it was modified under `summa/`, by adding an `summa/edits.py` files to create two new function, to access the internal process steps of textrank: 1. `scored_sentences`: gives the list of all the sentences with their score. 2. `similarity_graph`: gives the matrix of similarity of all the sentences in a text. ## [EXP] opacity For any wikipedia page, show the text content but where every sentences has an opacity inversely proportional to its TextRank score. Meaning sentences considered as _"relevant to be included in a summary of the article"_ becomes invisible; and what become visible is what would be considered as the _"boring and redundant"_. ### using * edited summa (https://github.com/summanlp/textrank) * wikipedia python module (https://pypi.org/project/wikipedia/) ### to use modify the variable `wikipedia_page` in `make.py` to whatever page then cd exp.opacity python3 make.py ### technical notes * **headers opacities** where manually recomputed has average of their section, this is justified because otherwise their break the flow of the document (their shortness seems to either put them nearly full black or white otherwise, independantly of how textrank rank the paragraphs in their associated sections) * using the `.content` method of python wikipedia, we get **plain text plus header in wikitext**, but things like `

`, `