Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass multiple strings in a single call #1

Open
richierocks opened this issue Jun 26, 2017 · 0 comments
Open

Pass multiple strings in a single call #1

richierocks opened this issue Jun 26, 2017 · 0 comments

Comments

@richierocks
Copy link
Contributor

Google Translate

Pass q arg repeatedly.

Required The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.

Microsoft Translator

Use POST TranslateArray.

texts: Required. An array containing the texts for translation. All strings must be of the same language. The total of all texts to be translated must not exceed 10000 characters. The maximum number of array elements is 2000.

The trick will be to split the input into suitable chunks and split/recombine as appropriate. factor(cumsum(nchar(x)) %/% 1e4) is probably what I want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant