MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / __init__

Method __init__

rat-sql-gap/seq2struct/utils/vocab.py:87–90  ·  view source on GitHub ↗
(self, min_freq=None, max_count=None)

Source from the content-addressed store, hash-verified

85
86class VocabBuilder:
87 def __init__(self, min_freq=None, max_count=None):
88 self.word_freq = collections.Counter()
89 self.min_freq = min_freq
90 self.max_count = max_count
91
92 def add_word(self, word, count=1):
93 self.word_freq[word] += count

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected