(sentence: str)
| 141 | |
| 142 | |
| 143 | def appendix_evidence_category(sentence: str) -> str: |
| 144 | lower = sentence.lower() |
| 145 | if any(token in lower for token in ["ablation", "without", "w/o", "remove", "removing"]): |
| 146 | if any(token in lower for token in ["drop", "decrease", "worse", "unstable", "fail", "%"]): |
| 147 | return "ablation" |
| 148 | if any( |
| 149 | token in lower |
| 150 | for token in [ |
| 151 | "learning rate", |
| 152 | "batch size", |
| 153 | "optimizer", |
| 154 | "epoch", |
| 155 | "hardware", |
| 156 | "gpu", |
| 157 | "hyperparameter", |
| 158 | "implementation", |
| 159 | "prompt", |
| 160 | "temperature", |
| 161 | ] |
| 162 | ): |
| 163 | return "implementation_details" |
| 164 | if re.search(r"\d", sentence) and any( |
| 165 | token in lower |
| 166 | for token in ["accuracy", "f1", "auc", "auprc", "score", "result", "outperform", "improv"] |
| 167 | ): |
| 168 | return "extra_results" |
| 169 | if any( |
| 170 | token in lower |
| 171 | for token in [ |
| 172 | "dataset", |
| 173 | "split", |
| 174 | "training set", |
| 175 | "validation", |
| 176 | "test set", |
| 177 | "annotation", |
| 178 | "annotator", |
| 179 | "corpus", |
| 180 | "participants", |
| 181 | "samples", |
| 182 | ] |
| 183 | ): |
| 184 | return "dataset_details" |
| 185 | if any(token in lower for token in ["case study", "qualitative", "example", "failure case"]): |
| 186 | return "qualitative_examples" |
| 187 | return "" |
| 188 | |
| 189 | |
| 190 | def appendix_section_for_page(appendix_index: dict, page_number: int) -> str: |
no outgoing calls
no test coverage detected