Skip to content

Commit

Permalink
fix(knowledge): FT parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed Dec 4, 2018
1 parent 79a55d8 commit 827124c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modules/knowledge/src/backend/classifier.ts
Expand Up @@ -64,7 +64,17 @@ export class DocumentClassifier {
}

const ft = new FastTextWrapper(fullModelPath)
ft.train(trainFile, { method: 'supervised' })
ft.train(trainFile, {
method: 'supervised',
epoch: 10,
bucket: 100000,
minCount: 1,
minn: 3,
maxn: 6,
wordGram: 5,
dim: 100,
learningRate: 0.2
})

this._ft = ft
this._index = indexedSnippets
Expand Down

0 comments on commit 827124c

Please sign in to comment.