MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / get_state_valid_tokens

Method get_state_valid_tokens

extraction/extract_constraint.py:83–84  ·  view source on GitHub ↗
(self, src_sentence: List[str], tgt_generated: List[str])

Source from the content-addressed store, hash-verified

81 add_special_tokens=False) if source_prefix else []
82
83 def get_state_valid_tokens(self, src_sentence: List[str], tgt_generated: List[str]) -> List[str]:
84 pass
85
86 def constraint_decoding(self, src_sentence, tgt_generated):
87 if self.source_prefix_tokenized:

Callers 1

constraint_decodingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected