MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / __init__

Method __init__

numpy_ml/tests/test_ngram.py:13–28  ·  view source on GitHub ↗
(
        self, N, K=1, unk=True, filter_stopwords=True, filter_punctuation=True
    )

Source from the content-addressed store, hash-verified

11
12class MLEGold:
13 def __init__(
14 self, N, K=1, unk=True, filter_stopwords=True, filter_punctuation=True
15 ):
16 self.N = N
17 self.K = K
18 self.unk = unk
19 self.filter_stopwords = filter_stopwords
20 self.filter_punctuation = filter_punctuation
21
22 self.hyperparameters = {
23 "N": N,
24 "K": K,
25 "unk": unk,
26 "filter_stopwords": filter_stopwords,
27 "filter_punctuation": filter_punctuation,
28 }
29
30 def train(self, corpus_fp, vocab=None, encoding=None):
31 N = self.N

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected