Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-processing #3

Open
bittlingmayer opened this issue May 11, 2019 · 0 comments
Open

Pre-processing #3

bittlingmayer opened this issue May 11, 2019 · 0 comments

Comments

@bittlingmayer
Copy link
Contributor

fastText did some pre-processing before training, so it's safest to do the same, especially lowercasing:

> (async () => { console.log(await lid.predict("Ótimo")) })()
> [ { lang: 'hu', prob: 0.3540060520172119 } ]
> (async () => { console.log(await lid.predict("ótimo")) })()
> [ { lang: 'pt', prob: 0.9964836835861206 } ]
> (async () => { console.log(await lid.predict("Uma boa experiencia")) })()
> [ { lang: 'en', prob: 0.5653783679008484 } ]
> (async () => { console.log(await lid.predict("uma boa experiencia")) })()
> [ { lang: 'pt', prob: 0.9949126839637756 } ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant