(
self, N, K=1, unk=True, filter_stopwords=True, filter_punctuation=True
)
| 11 | |
| 12 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected