MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / translate

Method translate

translation/index.js:177–181  ·  view source on GitHub ↗

Translate the given English sentence into French.

(inputSentence)

Source from the content-addressed store, hash-verified

175
176 /** Translate the given English sentence into French. */
177 translate(inputSentence) {
178 const inputSeq = this.encodeString(inputSentence);
179 const decodedSentence = this.decodeSequence(inputSeq);
180 return decodedSentence;
181 }
182}
183
184/**

Callers 1

setupTranslatorFunction · 0.80

Calls 2

encodeStringMethod · 0.95
decodeSequenceMethod · 0.95

Tested by

no test coverage detected