French word not recognised
Hi, I have used the translate.argosopentech.com API to translate french into english but got the same french sentence returned.
The sentence was: "Tout philosophe a deux philosophies : la sienne et celle de Spinoza."
As soon as I cut "la sienne et celle de spinoza" off the text, I get a successful french to english translation. This isn't the first I get this bug. Maybe it hasn't been trained a big french dataset.
Hi @zaouch , when going through the UI https://translate.argosopentech.com/ it is properly translated everytime
I am getting "every philosopher has two philosophies: his and spinoza" (nice quote btw)
Could you share the snippet of code to reproduce the error please?
same, i have no translation error

@vemonet Here is the code to reproduce the error:
const res = await fetch("https://translate.argosopentech.com/translate", {
method: "POST",
body: JSON.stringify({
q: "Tout philosophe a deux philosophies : la sienne et celle de Spinoza.",
source: "auto",
target: "en",
format: "text"
}),
headers: { "Content-Type": "application/json" }
});
var translated = await res.json();
Okay, setting source to "fr" makes the error disappear. Automatic language detection should be fixed.
We'd welcome contributions to improve auto-language detection. :pray:
For context: lingua-py does detect this as french with a ConfidenceValue of 0.707637394161458 (all languages it can detect considered)