(text: Any)
| 151 | |
| 152 | |
| 153 | def tokenize(text: Any) -> List[str]: |
| 154 | tokens: List[str] = [] |
| 155 | for raw_token in TOKEN_RE.findall(str(text or "").casefold()): |
| 156 | token = raw_token.replace("_", "-") |
| 157 | if len(token) <= 1: |
| 158 | continue |
| 159 | tokens.append(token) |
| 160 | if "-" in token: |
| 161 | tokens.extend(part for part in token.split("-") if len(part) > 1) |
| 162 | return tokens |
| 163 | |
| 164 | |
| 165 | def paper_text(row: Dict[str, Any]) -> str: |
no outgoing calls
no test coverage detected