(token: str)
| 117 | |
| 118 | |
| 119 | def hash_token(token: str) -> int: |
| 120 | return xxhash.xxh32(token.encode("utf-8")).intdigest() & 0xFFFFFFFF |
| 121 | |
| 122 | |
| 123 | def construct_sparse_vector(tokens: List[str]) -> Tuple[List[Tuple[int, int]], int]: |
no outgoing calls
no test coverage detected