1
0
Fork 0
mirror of https://gitlab.com/niansa/anyproc.git synced 2025-03-06 20:49:24 +01:00

Greatly improved translation

This commit is contained in:
niansa 2023-04-20 19:27:38 +02:00
parent b686957316
commit 24faa112e7

View file

@ -162,7 +162,10 @@ class Translator : PyEval {
public:
Translator(const std::string& weights_path) : PyEval(weights_path, get_params()) {
begin()
.load_module("perfect_translate", "translator")
.load_module("deepl_scrape", "translator")
.example("");
begin()
.expression("# Using translator.translate, we can reliably translate any language into any other language. The meaning of the text is going to stay the same and if the text already is in the target language, it remains unchanged.")
.example("");
begin()
.expression(translation_exprgen("\"Treehouse\"", "\"DE\""))
@ -174,20 +177,17 @@ public:
.expression(translation_exprgen("\"He's not an NPC, he's just another user here :/\"", "\"DE\""))
.example("'Er ist kein NPC, er ist hier nur ein normaler Benutzer :/'");
begin()
.expression(translation_exprgen("\"You are a very kind human :-)\"", "\"DE\""))
.example("'Du bist ein sehr freundlicher Mensch :-)'");
.expression(translation_exprgen("\"YDu bist ein sehr freundlicher Mensch :-)\"", "\"EN\""))
.example("'ou are a very kind human :-)'");
begin()
.expression(translation_exprgen("\"Hi\"", "\"EN\""))
.example("'Hi'");
begin()
.expression(translation_exprgen("\"What is the root of nine\"", "\"DE\""))
.example("'Was ist die Wurzel von neun'");
begin()
.expression(translation_exprgen("\"How long until school starts?\"", "\"IT\""))
.example("'Quanto manca all'inizio della scuola?'");
begin()
.expression(translation_exprgen("\"WILLST DU MICH komplett verarschen jetzt du bist dümmer als jeden vogel auf der welt digga du bist sogar so dumm das du deine antwortet wieder hollst\"", "\"EN\""))
.example("'DO YOU WANT TO FUCK ME COMPLETELY now you are dumber than any bird in the world you are even so stupid that you repeat your answers'");
begin()
.expression(translation_exprgen("\"Please **DO NOT** announce to the server when you are going to go masturbate. This has been a reoccurring issue, and I'm not sure why some people have such under developed social skills that they think that a server full of mostly male strangers would need to know that. No one is going to be impressed and give you a high five (especially considering where that hand has been). I don't want to add this to the rules, since it would be embarrassing for new users to see that we have a problem with this, but it is going to be enforced as a rule from now on.\"", "\"DE\""))
.example("'Bitte kündigt auf dem Server **NICHT** an, dass du masturbieren gehst. Dies ist ein wiederkehrendes Problem, und ich bin mir nicht sicher, warum einige Leute so unterentwickelte soziale Fähigkeiten haben, dass sie denken, dass ein Server voller meist männlicher Fremder das wissen muss. Niemand wird beeindruckt sein und dir ein High Five geben (besonders wenn man bedenkt, wo diese Hand war). Ich möchte dies nicht zu den Regeln hinzufügen, da es für neue Benutzer peinlich wäre, zu sehen, dass wir ein Problem damit haben, aber es wird von nun an als Regel durchgesetzt werden.'");
begin()
.expression(translation_exprgen("\"Please wait...\"", "\"DE\""))
.example("'Bitte warten...'");