MCPcopy
hub / github.com/PDFMathTranslate/PDFMathTranslate / do_translate

Method do_translate

pdf2zh/translator.py:105–111  ·  view source on GitHub ↗

Actual translate text, override this method :param text: text to translate :return: translated text

(self, text: str)

Source from the content-addressed store, hash-verified

103 return translation
104
105 def do_translate(self, text: str) -> str:
106 """
107 Actual translate text, override this method
108 :param text: text to translate
109 :return: translated text
110 """
111 raise NotImplementedError
112
113 def prompt(
114 self, text: str, prompt_template: Template | None = None

Callers 1

translateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected