-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi,
I've been using the library and detected some odd behaviors when comparing to other language binding for example this one https://github.com/dachev/node-cld and I'm trying to understand why it behave differently as it's supposed to be the same library behind.
I have a few examples with no hint used in both cases:
Bjr on et 2 personne vou pouver nou recupere a bezon ou pa meci
node-cld:
{ reliable: true,
textBytes: 63,
languages: [ { name: 'FRENCH', code: 'fr', percent: 98, score: 379 } ],
chunks: [] }cld2-php-ext:
array(5) {
'language_id' =>
int(139)
'language_code' =>
string(2) "ht"
'language_name' =>
string(14) "HAITIAN_CREOLE"
'language_probability' =>
int(98)
'is_reliable' =>
bool(true)
}Sin ningun problema pablo
node-cld:
{ reliable: true,
textBytes: 27,
languages: [ { name: 'SPANISH', code: 'es', percent: 96, score: 512 } ],
chunks: [ { name: 'SPANISH', code: 'es', offset: 0, bytes: 25 } ] }cld2-php-ext:
array(5) {
'language_id' =>
int(71)
'language_code' =>
string(2) "su"
'language_name' =>
string(9) "SUNDANESE"
'language_probability' =>
int(96)
'is_reliable' =>
bool(true)
}In both cases the result from the node-cld binding is much more relevant, any clues ?
Thanks
Metadata
Metadata
Assignees
Labels
No labels