Uses 911K of libraries. Click here for Pure Java version (13987L/79K).
!7 // Text + questions from https://lingua.com/english/reading/john/ cmodule John > DynPrintLog { transient ReadingComprehensionTest test; switchable S text = [[ Hi! Nice to meet you! My name is John Smith. I am 19 and a student in college. I go to college in New York. My favorite courses are Geometry, French, and History. English is my hardest course. My professors are very friendly and smart. It’s my second year in college now. I love it! I live in a big house on Ivy Street. It’s near the college campus. I share the house with three other students. Their names are Bill, Tony, and Paul. We help each other with homework. On the weekend, we play football together. I have a younger brother. He just started high school. He is 14 and lives with my parents. They live on Mulberry Street in Boston. Sometimes they visit me in New York. I am happy when they visit. My Mom always brings me sweets and candy when they come. I really miss them, too! Question 1: Where does John Smith go to college? 1 Berlin 2 Boston 3 New York 4 Paris Question 2: What is John Smith’s hardest course? 1 Art 2 English 3 Math 4 French Question 3: Who shares a house with John Smith? 1 Anna, Margaret, and Tanya 2 Bill, John, and Tom 3 Frank, Tony, and Mike 4 Bill, Tony, and Paul Question 4: How old is John Smith’s younger brother? 1 fourteen 2 eleven 3 seven 4 thirteen Question 5: What does John Smith’s Mom bring him when they visit? 1 Candy and ice cream 2 Fruits and vegetables 3 Sweets and candy 4 Flowers and coffee ]]; start-thread { dm_useLocalMechListCopies(); test = ai_parseReadingComprehensionTest_v1(text, printText := false); LS sentences = switcheroo_iToSpeakersName(test.sentences); //pnl(sentences); for (S s : sentences) { print(s); print(ai_parseToTreeWithCurlyPhrases(s)); break; } } }
Began life as a copy of #1023778
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023822 |
Snippet name: | "My name is John" [parsing all sentences, dev.] |
Eternal ID of this version: | #1023822/5 |
Text MD5: | 024900c5f0f76bf98cb2869c7ddf0364 |
Transpilation MD5: | eed402e858840272ca6b9a013e4fab7e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-09 20:25:12 |
Source code size: | 2076 bytes / 55 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 238 / 1647 |
Version history: | 4 change(s) |
Referenced in: | [show references] |