翻译未知语言的单词
使用任意语言中的字符串.
In[1]:=
string = "Danke";
识别该单词的语言.
In[2]:=
origin = LanguageIdentify[string]
Out[2]=
翻译成其他语言.
In[3]:=
WordTranslation[string, origin -> Entity["Language", "Spanish"]]
Out[3]=
选取语言列表并构建显示该词汇多语种翻译的美观的词汇云.
显示完整的 Wolfram 语言输入
使用任意语言中的字符串.
string = "Danke";
识别该单词的语言.
origin = LanguageIdentify[string]
翻译成其他语言.
WordTranslation[string, origin -> Entity["Language", "Spanish"]]
选取语言列表并构建显示该词汇多语种翻译的美观的词汇云.
langs = {Entity["Language", "Spanish"], Entity["Language", "English"],
Entity["Language", "Russian"], Entity["Language", "Danish"],
Entity["Language", "Korean"]};
Manipulate[
WordCloud[
Flatten[TextWords /@
WordTranslation[string, LanguageIdentify[string] -> language]],
ImageSize -> {512, 256}], {language, langs}]