Changes for page The AISOP recipe
Last modified by Paul Libbrecht on 2025/06/15 23:32
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -22,6 +22,7 @@ 22 22 23 23 ---- 24 24 25 +(% class="wikigeneratedid" %) 25 25 == 1) Data Preparation == 26 26 27 27 === 1.1: Make a Concept Map === ... ... @@ -36,14 +36,8 @@ 36 36 > Flow Charts 37 37 > Programming 38 38 > Programming Paradigm 39 -> Imperative Programming 40 ->Data-Structure 41 -> .... 42 ->Operating System 43 -> .... 40 +> Imperative Programming.... 44 44 45 -We'll name this file labels-all-depths.txt. From this text file, extract a text file with only the top labels (in the extract above only Algorithmization, Data-Structure and Operating System), named labels-depth1.txt. 46 - 47 47 === 1.2: Extract Text of the Course Content === 48 48 49 49 In order for the topic recognition to work, a model needs to be trained that will recognize the words used by the students to denote a part or another of the course. This allows to create relations between the concepts of the course and the paragraphs of the portfolio and offer these in the interactive dashboards. The training is the result of annotating fragments of texts which, first, need to be extracted from their media, be them PDF files, PowerPoint slides, scanned texts or student works. These texts will not be shared so that even protected material or even personal-information carrying texts can be used. ... ... @@ -50,24 +50,12 @@ 50 50 51 51 Practically: 52 52 53 -* Make all documents accessible for you to open and browse (e.g. download them or get the authorized accesses) 54 -* Install and launch the [[clipboard extractor>>https://gitlab.com/aisop/aisop-hacking/-/tree/main/aisop-clipboard-extractor?ref_type=heads]] which will gather the fragments in a text file 55 -* Go through all contents and copy each fragment. A fragment is expected to be the size of a paragraph so this is what you should copy. 56 -* The extractor should have copied all the fragments in one file. Which we shall call extraction.json. 57 -* The least amount of content to be extracted is the complete set of slides and their comments. We recommend to use past students' e-portfolios too. We had rather good experience with about 1000 fragments for a course. 58 -* If interrupted, the process may create several JSON files. You can combine them using the [[merge-tool>>https://gitlab.com/aisop/aisop-hacking/-/tree/main/merge-json-files]]. 48 +* Assemble the documents 59 59 60 60 === 1.3: Annotate Text Fragments === 61 61 62 - Itistimetoendowthefragmentswithtopicsso thatwecanrecognizestudents'paragraphs'topics.InAISOP,wehave usedthe(commercial)[[prodigy>>https://prodi.gy/]]forthistaskin twostepswhich,both,iteratethroughallfragmentstogivethemtopics.52 +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 63 63 64 -**The first step: top-level-labels:** This is the simple [["text classifier" recipe>>https://prodi.gy/docs/recipes#textcat]] of prodigy: we can invoke the following command for this: prodigy textcat.manual the-course-name ./fragments.jsonl ~-~-label labels-depth1.txt which will offer a web-interface on which each fragment is annotated with the (top-level) label. This web-interface can be left running for several days. 65 - 66 -**The second step is the hierarchical annotation** [[custom recipe>>https://gitlab.com/aisop/aisop-nlp/-/tree/main/hierarchical_annotation?ref_type=heads]] (link to become public soon): The same fragments are now annotated with the top-level annotation and all their children. E.g. using the command xxx 67 - 68 -The resulting data-set can be extracted out of prodigy using the db-out recipe, e.g. prodigy db-out the-course-name-l2 the-course-name-l2 69 - 70 - 71 71 ---- 72 72 73 73 == 2) Deployment == ... ... @@ -107,3 +107,4 @@ 107 107 === 3.4 Gather Enhancements === 108 108 109 109 ... on the web-app, on the creation process, and on the course 93 +