MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / intersperse

Function intersperse

NLP/Text2SQL-BASELINE/text2sql/grammars/nl2sql.py:56–59  ·  view source on GitHub ↗
(delimiter, seq)

Source from the content-addressed store, hash-verified

54
55
56def intersperse(delimiter, seq):
57 return itertools.islice(
58 itertools.chain.from_iterable(
59 zip(itertools.repeat(delimiter), seq)), 1, None)
60
61
62class NL2SQLLanguage(object):

Callers 1

unparse_fromMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected