Changes

Jump to navigation Jump to search
287 bytes added ,  11:04, 20 May 2019
m
no edit summary
Line 7: Line 7:  
translator.translate('안녕하세요.', dest='ja')
 
translator.translate('안녕하세요.', dest='ja')
 
translator.detect('veritas lux mea').lang
 
translator.detect('veritas lux mea').lang
 +
</syntaxhighlight>
 +
 +
== Language detection ==
 +
 +
=== Langdetect ===
 +
<syntaxhighlight lang="bash">
 +
pip install landetect
 +
</syntaxhighlight><syntaxhighlight lang="python3">
 +
from langdetect import detect
 +
detect("War doesn't show who's right, just who's left.")
 +
detect("Ein, zwei, drei, vier")
 
</syntaxhighlight>
 
</syntaxhighlight>
 
[[Category:Python]]
 
[[Category:Python]]

Navigation menu