Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Re-train the models and add a condition for Predict
Browse files Browse the repository at this point in the history
Fixes #153
  • Loading branch information
hugolgst committed Feb 25, 2021
1 parent 702fbe3 commit 109dca9
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions analysis/sentence.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func (sentence Sentence) PredictTag(neuralNetwork network.Network) string {
// Enumerate the results with the intent tags
var resultsTag []Result
for i, result := range predict {
if i >= len(classes) {
continue
}
resultsTag = append(resultsTag, Result{classes[i], result})
}

Expand Down
2 changes: 1 addition & 1 deletion res/locales/ca/training.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion res/locales/de/training.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion res/locales/el/training.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion res/locales/en/training.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion res/locales/es/training.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion res/locales/fr/training.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion res/locales/it/training.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion res/locales/nl/training.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion res/locales/tr/training.json
100644 → 100755

Large diffs are not rendered by default.

0 comments on commit 109dca9

Please sign in to comment.