Skip to content

Commit

Permalink
Merge pull request #1083 from botpress/ya-fix-nlu
Browse files Browse the repository at this point in the history
fix(nlu): adding EOL to fix nlu prediction issue
  • Loading branch information
slvnperron committed Nov 6, 2018
2 parents daafb19 + 06e0835 commit 35d7cd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/nlu/src/backend/fasttext/fasttext.wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { execFile, execFileSync } from 'child_process'
import { EOL } from 'os'
import { join } from 'path'
import { Readable } from 'stream'

Expand Down Expand Up @@ -80,7 +81,7 @@ signal: ${err.signal}
})

let out: string = ''
result.stdin.end(inputText)
result.stdin.end(`${inputText}${EOL}`)
result.stdout.on('data', chunk => {
out += chunk
})
Expand Down

0 comments on commit 35d7cd4

Please sign in to comment.