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

Method __init__

extraction/extract_constraint.py:77–81  ·  view source on GitHub ↗
(self, tokenizer, source_prefix)

Source from the content-addressed store, hash-verified

75
76class ConstraintDecoder:
77 def __init__(self, tokenizer, source_prefix):
78 self.tokenizer = tokenizer
79 self.source_prefix = source_prefix
80 self.source_prefix_tokenized = tokenizer.encode(source_prefix,
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

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected