(text: Any)
| 197 | |
| 198 | |
| 199 | def tokenize(text: Any) -> List[str]: |
| 200 | tokens: List[str] = [] |
| 201 | for raw_token in TOKEN_RE.findall(str(text or "").casefold()): |
| 202 | token = raw_token.replace("_", "-") |
| 203 | if len(token) <= 1: |
| 204 | continue |
| 205 | tokens.append(token) |
| 206 | if "-" in token: |
| 207 | tokens.extend(part for part in token.split("-") if len(part) > 1) |
| 208 | return tokens |
| 209 | |
| 210 | |
| 211 | def paper_text(row: Dict[str, Any]) -> str: |
no outgoing calls
no test coverage detected