|
113 | 113 | ), |
114 | 114 | fields={'text': 'text'} |
115 | 115 | ), |
| 116 | + "docs": q.select( |
| 117 | + q.keys( |
| 118 | + 'writing_observer.reconstruct', |
| 119 | + STUDENTS=q.variable("roster"), |
| 120 | + STUDENTS_path='user_id', |
| 121 | + RESOURCES=q.variable("update_docs"), |
| 122 | + RESOURCES_path='doc_id' |
| 123 | + ), |
| 124 | + fields={'text': 'text'} |
| 125 | + ), |
| 126 | + 'single_student_docs_by_ids': q.select( |
| 127 | + q.keys( |
| 128 | + 'writing_observer.reconstruct', |
| 129 | + STUDENTS=q.parameter("student_id", required=True), |
| 130 | + STUDENTS_path='user_id', |
| 131 | + RESOURCES=q.parameter("document", required=True), |
| 132 | + RESOURCES_path='doc_id' |
| 133 | + ), |
| 134 | + fields={'text': 'text'} |
| 135 | + ), |
| 136 | + 'single_student_nlp': process_texts( |
| 137 | + writing_data=q.variable('single_student_docs_by_ids'), |
| 138 | + options=q.parameter('nlp_options', required=False, default=[]) |
| 139 | + ), |
116 | 140 | "doc_ids": q.select(q.keys('writing_observer.last_document', STUDENTS=q.variable("roster"), STUDENTS_path='user_id'), fields={'document_id': 'doc_id'}), |
117 | 141 | 'update_docs': update_via_google(runtime=q.parameter("runtime"), doc_ids=q.variable('doc_sources')), |
118 | 142 | "docs": q.select(q.keys('writing_observer.reconstruct', STUDENTS=q.variable("roster"), STUDENTS_path='user_id', RESOURCES=q.variable("update_docs"), RESOURCES_path='doc_id'), fields={'text': 'text'}), |
|
0 commit comments