View source: R/get_translations.R
get_wordlist | R Documentation |
This will add the first four unique translations that match the words and pos provided. Anything that is not a verb, adjective, noun, or adverb will return blanks, as will anything that does not have a translation in OMW for the language requested. It will not look for proper nouns; udpipe does a great job of parsing pos, with the exception of Title Case. Consider pre-processing if you have a lot of Title Case. This is intended to be used in conjunction with the word frequency lists to aid in building wordlists for ESL teachers.
get_wordlist(data, language, def = TRUE)
data |
a dataframe containing doc_id, sentence_id, token_id, token, lemma, upos. Should be piped from udpipe. |
language |
three-character abbreviation of language to find translations for. Refer to |
def |
TRUE will add a definition column, anything else will leave it out. Defaults to TRUE |
a dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.