MCPcopy Create free account
hub / github.com/google-research/language / __init__

Method __init__

language/realm/featurization.py:85–92  ·  view source on GitHub ↗
(self, query_seq_len, candidate_seq_len, num_candidates,
               max_masks, tokenizer, separate_candidate_segments)

Source from the content-addressed store, hash-verified

83 """Featurizes queries and documents."""
84
85 def __init__(self, query_seq_len, candidate_seq_len, num_candidates,
86 max_masks, tokenizer, separate_candidate_segments):
87 self.query_seq_len = query_seq_len
88 self.candidate_seq_len = candidate_seq_len
89 self.num_candidates = num_candidates
90 self.max_masks = max_masks
91 self.tokenizer = tokenizer
92 self.separate_candidate_segments = separate_candidate_segments
93
94 @profile.profiled_function
95 def mask_query(self, query):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected