{"id":395,"date":"2019-09-25T09:30:16","date_gmt":"2019-09-25T02:30:16","guid":{"rendered":"http:\/\/ainoodle.tech\/?p=395"},"modified":"2019-09-25T09:30:16","modified_gmt":"2019-09-25T02:30:16","slug":"thu-choi-lon-day-may-tinh-hoc-nhan-dien-ngoai-ngu-bang-mang-lstm","status":"publish","type":"post","link":"https:\/\/miai.vn\/?p=395","title":{"rendered":"Th\u1eed &#8220;ch\u01a1i l\u1edbn&#8221; d\u1ea1y m\u00e1y t\u00ednh &#8220;h\u1ecdc&#8221; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef b\u1eb1ng m\u1ea1ng LSTM"},"content":{"rendered":"\n<p>Xin ch\u00e0o t\u1ea5t c\u1ea3 anh em M\u00ec AI, nh\u01b0 v\u1eady l\u00e0 ch\u00fang ta \u0111\u00e3 \u0111i qua v\u00e0i b\u00e0i li\u00ean ti\u1ebfp v\u1ec1 Computer Vision r\u1ed3i. H\u00f4m nay m\u00ecnh xin \u0111\u1ed5i m\u00f3n cho anh em b\u1eb1ng m\u1ed9t b\u00e0i li\u00ean quan \u0111\u1ebfn NLP, Word Embeding nh\u00e9. Ch\u00fang ta s\u1ebd th\u1eed &#8220;ch\u01a1i l\u1edbn&#8221; d\u1ea1y m\u00e1y t\u00ednh &#8220;h\u1ecdc&#8221; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef b\u1eb1ng m\u1ea1ng LSTM xem n\u00f3 ra sao \ud83d\ude00<\/p>\n\n\n\n<p>R\u1ed3i, \u0111\u1ea1i kh\u00e1i b\u00e0i to\u00e1n nh\u01b0 sau. Ch\u00fang ta s\u1ebd \u0111\u01b0a cho m\u00e1y t\u00ednh m\u1ed9t c\u00e2u n\u00f3i v\u00ed d\u1ee5 &#8220;T\u00f4i y\u00eau M\u00ec AI&#8221; ho\u1eb7c &#8220;I love Vietnam&#8221; v\u00e0 m\u00e1y t\u00ednh s\u1ebd nh\u1eadn bi\u1ebft \u0111\u01b0\u1ee3c ng\u00f4n ng\u1eef s\u1eed d\u1ee5ng l\u00e0 g\u00ec. V\u00ed d\u1ee5 &#8220;T\u00f4i y\u00eau M\u00ec AI&#8221; th\u00ec m\u00e1y t\u00ednh s\u1ebd b\u1ea3o &#8220;Ti\u1ebfng Vi\u1ec7t&#8221;, c\u00f2n I love Vietnam th\u00ec m\u00e1y t\u00ednh b\u1ea3o &#8220;Ti\u1ebfng Anh ch\u1ee9 c\u00f2n g\u00ec n\u1eefa&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/174.138.108.232\/wp-content\/uploads\/2017\/08\/language.png\" alt=\"nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef\"\/><\/figure>\n\n\n\n<p>D\u00e0i d\u00f2ng \u0111\u1ee7 r\u1ed3i, gi\u1edd b\u1eaft \u0111\u1ea7u n\u00e0o!<\/p>\n\n\n\n<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }<\/style><div class=\"embed-container\"><iframe src=\"https:\/\/www.youtube.com\/embed\/\/GJiEBmhRDQo\" frameborder=\"0\" allowfullscreen=\"\"><\/iframe><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Ph\u1ea7n 1. Chu\u1ea9n b\u1ecb nguy\u00ean v\u1eadt li\u1ec7u<\/h2>\n\n\n\n<p>Nh\u01b0 th\u01b0\u1eddng l\u1ec7 ch\u00fang ta l\u1ea1i t\u1ea1o th\u01b0 m\u1ee5c <strong>MiAI_Lang_Detect<\/strong> \u0111\u1ec3 l\u01b0u n\u1ed9i dung b\u00e0i n\u00e0y v\u00e0o nh\u00e9. Sau khi t\u1ea1o xong, c\u00e1c b\u1ea1n g\u00f5 l\u1ec7nh:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>git clone https:\/\/github.com\/thangnch\/MiAI_Lang_Detect .<\/code><\/pre>\n\n\n\n<p>C\u00e1c b\u1ea1n ch\u00fa \u00fd d\u1ea5u . cu\u1ed1i d\u00f2ng. \u0110\u1ee3i m\u1ed9t l\u00fac cho project t\u1ea3i v\u1ec1 l\u00e0 xong. B\u00e0i n\u00e0y c\u00e1c b\u1ea1n kh\u00f4ng ph\u1ea3i t\u1ea3i weights hay l\u00e0m g\u00ec th\u00eam c\u1ea3, m\u1ecdi th\u1ee9 c\u00f3 s\u1eb5n trong folder r\u1ed3i.<\/p>\n\n\n\n<p>B\u00e2y gi\u1edd ch\u00fang ta ti\u1ebfn h\u00e0nh c\u00e0i \u0111\u1eb7t c\u00e1c th\u01b0 vi\u1ec7n c\u1ea7n thi\u1ebft nh\u00e9. Ch\u1ea1y l\u1ec7nh:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>pip install -r setup.txt<\/code><\/pre>\n\n\n\n<p>Sau \u0111\u00f3 ng\u1ed3i \u0111\u1ee3i 1 l\u00fac l\u00e0 xong nh\u00e9.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ph\u1ea7n 2. T\u01b0 t\u01b0\u1edfng thu\u1eadt to\u00e1n nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef v\u00e0 kh\u00e1i ni\u1ec7m<\/h2>\n\n\n\n<p>G\u1ecdi l\u00e0 \u0103n M\u00ec AI nh\u01b0ng anh em c\u0169ng ph\u1ea3i bi\u1ebft qua t\u00fd thu\u1eadt to\u00e1n nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef v\u00e0 kh\u00e1i ni\u1ec7m t\u00fd nh\u00e9, sau c\u00f3 g\u00ec c\u00f2n ch\u00e9m n\u1eefa ch\u1ee9. M\u00ecnh \u0111\u00f9a \u0111\u00f3, bi\u1ebft \u0111\u1ec3 s\u1eeda v\u00e0 t\u1ed1i \u01b0u theo \u00fd m\u00ecnh cho model t\u1ed1t h\u01a1n. \ud83d\ude00<\/p>\n\n\n\n<p>\u0110\u1ea1i kh\u00e1i b\u00e0i n\u00e0y m\u00ecnh l\u00e0m nh\u01b0 sau:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u0110\u1ecdc file d\u1eef li\u1ec7u data.csv \u0111\u00ednh k\u00e8m. G\u1ed3m 2 c\u1ed9t: C\u00e2u v\u00e0 Ng\u00f4n ng\u1eef. File n\u00e0y s\u1ebd \u0111\u01b0\u1ee3c d\u00f9ng \u0111\u1ec3 train cho model.<\/li><li>Chuy\u1ec3n \u0111\u1ed5i c\u00e1c c\u00e2u th\u00e0nh c\u00e1c vector s\u1ed1 b\u1eb1ng c\u00e1ch nh\u01b0 sau (c\u00e1i n\u00e0y g\u1ecdi l\u00e0 word embeding nh\u00e9):<ul><li>Chuy\u1ec3n \u0111\u1ed5i b\u1ea3ng vocab th\u00e0nh s\u1ed1, 1 word trong vocab s\u1ebd \u1ee9ng v\u1edbi 1 s\u1ed1 nh\u1ea5t \u0111\u1ecbnh. V\u00ed d\u1ee5: &#8220;Anh&#8221; -&gt; 0, &#8220;Y\u00eau&#8221; -&gt; 1 v\u00e0 &#8220;Em&#8221; -&gt;2<\/li><li>Duy\u1ec7t c\u00e1c t\u1eeb trong c\u00e2u, t\u1eeb \u0111\u1ea7u \u0111\u1ebfn h\u1ebft, chuy\u1ec3n \u0111\u1ed5i t\u1eeb \u0111\u00f3 th\u00e0nh s\u1ed1 \u1ee9ng v\u1edbi d\u1eef li\u1ec7u b\u00ean tr\u00ean. V\u00ed d\u1ee5 c\u00e2u &#8220;Anh y\u00eau em&#8221; s\u1ebd l\u00e0 &#8220;0 1 2&#8221; v\u00e0 c\u00e2u &#8220;Em y\u00eau anh&#8221; s\u1ebd l\u00e0 &#8220;2 1 0&#8221;.<\/li><\/ul><\/li><li>\u0110\u01b0a c\u00e1c vector s\u1ed1 v\u00e0 ng\u00f4n ng\u1eef output v\u00e0o m\u1ea1ng LSTM \u0111\u1ec3 train.<\/li><li>Ti\u1ebfn h\u00e0nh precdict 1 c\u00e2u input b\u1eb1ng c\u00e1ch:<ul><li>Chuy\u1ec3n \u0111\u1ed5i c\u00e2u input th\u00e0nh vector s\u1ed1<\/li><li>\u0110\u01b0a v\u00e0o m\u1ea1ng \u0111\u00e3 train v\u00e0 nh\u1eadn output \u0111\u1ea7u ra. N\u1ebfu probality &lt; 1 m\u1ee9c n\u00e0o \u0111\u00f3 (\u0111ang \u0111\u1ec3 0.4) th\u00ec l\u00e0 kh\u00f4ng x\u00e1c \u0111\u1ecbnh \u0111\u01b0\u1ee3c ng\u00f4n ng\u1eef, c\u00f2n l\u1ea1i th\u00ec hi\u1ec3n th\u1ecb ng\u00f4n ng\u1eef ra m\u00e0n h\u00ecnh.<\/li><\/ul><\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/mcl.usc.edu\/wp-content\/uploads\/2019\/01\/190106_1.jpg\" alt=\"nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef\"\/><\/figure>\n\n\n\n<p>R\u1ed3i, b\u00e2y gi\u1edd \u0111\u1ebfn code n\u00e0o. Chi ti\u1ebft c\u00e1c b\u1ea1n m\u1edf file detect_lang.py, trong \u0111\u00f3 m\u00ecnh \u0111\u00e3 comment k\u1ef9 t\u1eebng d\u00f2ng theo \u0111\u00fang t\u01b0 t\u01b0\u1edfng thu\u1eadt to\u00e1n n\u00eau tr\u00ean r\u1ed3i nh\u00e9.<\/p>\n\n\n\n<p>C\u00e1c b\u1ea1n th\u1ea5y kh\u00f3 hi\u1ec3u ph\u1ea7n n\u00e0o th\u00ec comment tr\u00ean group M\u00ec AI Group trao \u0111\u1ed5i, chia s\u1ebb: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.facebook.com\/groups\/miaigroup\" target=\"_blank\">https:\/\/www.facebook.com\/groups\/miaigroup<\/a>&nbsp; \u0111\u1ec3 c\u00f9ng trao \u0111\u1ed5i nh\u00e9.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ph\u1ea7n 3. Ti\u1ebfn h\u00e0nh train v\u00e0 test model<\/h2>\n\n\n\n<p>C\u00e1c b\u1ea1n ch\u00fa \u00fd, b\u00e0i n\u00e0y m\u00ecnh s\u1ebd ch\u1ec9 l\u00e0m v\u1edbi 3 ng\u00f4n ng\u1eef: Ti\u1ebfng Anh, Ti\u1ebfng \u00dd v\u00e0 Ti\u1ebfng Vi\u1ec7t. Tuy nhi\u00ean, b\u1ea1n c\u00f3 th\u1ec3 l\u00e0m v\u1edbi bao nhi\u00eau ng\u00f4n ng\u1eef t\u00f9y \u00fd nh\u00e9, c\u1ee9 nh\u1edd Google Translate l\u00e0 okie h\u1ebft.<\/p>\n\n\n\n<p>\u0110\u1ec3 train model, b\u1ea1n ch\u1ea1y l\u1ec7nh sau:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>python detect_lang.py train<\/code><\/pre>\n\n\n\n<p>Model s\u1ebd train t\u1ea7m 5 epochs. L\u00fd do v\u00ec m\u00ecnh th\u1ea5y v\u1edbi d\u1eef li\u1ec7u c\u1ee7a minh th\u00ec 5 epochs l\u00e0 okie r\u1ed3i, c\u00e1c b\u1ea1n n\u1ebfu thay \u0111\u1ed5i d\u1eef li\u1ec7u th\u00ec t\u0103ng gi\u1ea3m epochs t\u00f9y nhu c\u1ea7u nh\u00e9. Khi n\u00e0o c\u00e1c b\u1ea1n th\u1ea5y m\u00e0n h\u00ecnh hi\u1ec3n th\u1ecb nh\u01b0 b\u00ean d\u01b0\u1edbi l\u00e0 train xong:<\/p>\n\n\n\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- InPost_Ad -->\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-5095883280136027\"\n     data-ad-slot=\"7735063137\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<pre class=\"wp-block-preformatted\">Accuracy: 99.83%<br>Model trained and saved!<\/pre>\n\n\n\n<p>Model s\u1ebd l\u01b0u file model.h5 ra folder MiAI_Lang_Detect , c\u00e1c b\u1ea1n th\u1ea5y c\u00f3 file l\u00e0 okie r\u1ed3i.<\/p>\n\n\n\n<p>Ti\u1ebfp theo l\u00e0 test model. C\u00e1c b\u1ea1n ch\u1ea1y l\u1ec7nh sau:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>python detect_lang.py test \"I love you\"<\/code><\/pre>\n\n\n\n<p>Trong \u0111\u00f3 &#8220;I love you&#8221; l\u00e0 c\u00e2u c\u1ea7n test, c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ed5i th\u00e0nh c\u00e2u b\u1ea5t k\u00ec nh\u01b0ng ph\u1ea3i \u0111\u1ec3 trong d\u1ea5u ngo\u1eb7c k\u00e9p nh\u00e9.<\/p>\n\n\n\n<p>Nh\u01b0 v\u00ed d\u1ee5 tr\u00ean m\u00ecnh ch\u1ea1y th\u00ec k\u1ebft qu\u1ea3 nh\u01b0 sau:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/7d4HUV0yx8BFAKLG4kWQpaKQeYkJvNtgaCKj4N5rYEyfH4L8TuSqztdxglI7NqKTZTYr4SaoPsz3gf2Sn_Pc_8W3IEgnFMHE57egTBm6SiI192SJvH8utZliMCnfHGpDZQipzTZX653VuwdR8i-xDo1bbQEtZIL5mKB2SP8G5CU_Y41YsknZOKIyEwKzk3rNXPIDnLa8_GT6mcu5A-ra0NqBVHsY16rTx94y7N5fsCGkczTa4qPoZhtv3VEZyQyHgnsM6MgxGHaf1d4f4Q2FciVRQzr_004HdGJzSLhxTzBWah30TK6vkDJ1kjvlUGnDeuOjjes_-OFfEID2lREVRjOCwlbz-wGqqtga8C_C2VdsG9M0jK6dIu1mDLtJOgAIpJDCxBZ5BfUF4YaeKu1nsDwSnLtb163YA5Q6FzBeXzr1T9Wb3kH-UjLnaS2ohbMlyroQfBF_MPAgyk6ynDXbqHXxjm-m44_dCnzKU529EjuosXHjta5-Sky3OIlR75m0GGOs6cTNK9IeLkQ0poNgMRqVMkSsEwWSf3rEplwbK35YteIUFvJWiYwCPvPDzDtp8wFCwaCSfuO1TfatZA79ptr1HJK8dfLJK6dqZ-ARGWXbB-90kqzU3VVlnzScdD57_HtoAUspXzbB1Nwsxh8LU5thaup0sbOjeM8YFBD7dLV2JPyJP8aF27RAcC9_AfEVZA6ItdfJc97vTykHA2ZJhb_GPoWvtdLMHtb6mY_etxheNI7gfA=w1584-h360-no\" alt=\"\"\/><\/figure>\n\n\n\n<p>Nh\u01b0 v\u1eady l\u00e0 c\u00e1c b\u1ea1n \u0111\u00e3 bi\u1ebft c\u00e1ch chuy\u1ec3n \u0111\u1ed5i c\u00e2u th\u00e0nh s\u1ed1 \u0111\u1ec3 m\u00e1y t\u00ednh c\u00f3 th\u1ec3 x\u1eed l\u00fd \u0111\u01b0\u1ee3c (note l\u00e0 c\u00f2n nhi\u1ec1u lo\u1ea1i embeding kh\u00e1c nh\u00e9 nh\u01b0 Word2Vec, Fasttext&#8230;). V\u00e0 c\u0169ng \u0111\u00e3 bi\u1ebft s\u1eed d\u1ee5ng LSTM \u0111\u1ec3 ph\u00e2n lo\u1ea1i ng\u00f4n ng\u1eef v\u00e0 sau n\u00e0y \u00e1p d\u1ee5ng \u0111\u1ec3 ph\u00e2n lo\u1ea1i c\u1ea3m x\u00fac, ph\u00e2n lo\u1ea1i v\u0103n b\u1ea3n&#8230;<\/p>\n\n\n\n<p>Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng! <\/p>\n\n\n\n<p>C\u00e1c b\u1ea1n th\u1ea5y kh\u00f3 hi\u1ec3u ph\u1ea7n n\u00e0o th\u00ec comment tr\u00ean group M\u00ec AI Group trao \u0111\u1ed5i, chia s\u1ebb: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.facebook.com\/groups\/miaigroup\" target=\"_blank\">https:\/\/www.facebook.com\/groups\/miaigroup<\/a>&nbsp; \u0111\u1ec3 c\u00f9ng trao \u0111\u1ed5i nh\u00e9.<\/p>\n\n\n\n<p>Fanpage: <a rel=\"noreferrer noopener\" aria-label=\"http:\/\/facebook.com\/miaiblog (opens in a new tab)\" href=\"http:\/\/facebook.com\/miaiblog\" target=\"_blank\">http:\/\/facebook.com\/miaiblog<\/a><br>Group trao \u0111\u1ed5i, chia s\u1ebb: <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.facebook.com\/groups\/miaigroup (opens in a new tab)\" href=\"https:\/\/www.facebook.com\/groups\/miaigroup\" target=\"_blank\">https:\/\/www.facebook.com\/groups\/miaigroup<\/a><br>Website: <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/miai.vn (opens in a new tab)\" href=\"https:\/\/miai.vn\/\" target=\"_blank\">https:\/\/miai.vn\/<\/a><br>Youtube: <a href=\"http:\/\/bit.ly\/miaiyoutube\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"http:\/\/bit.ly\/miaiyoutube (opens in a new tab)\">http:\/\/bit.ly\/miaiyoutube<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xin ch\u00e0o t\u1ea5t c\u1ea3 anh em M\u00ec AI, nh\u01b0 v\u1eady l\u00e0 ch\u00fang ta \u0111\u00e3 \u0111i qua v\u00e0i b\u00e0i li\u00ean ti\u1ebfp v\u1ec1 Computer Vision r\u1ed3i. H\u00f4m nay m\u00ecnh xin \u0111\u1ed5i m\u00f3n cho anh em b\u1eb1ng m\u1ed9t b\u00e0i li\u00ean quan \u0111\u1ebfn NLP, Word Embeding nh\u00e9. Ch\u00fang ta s\u1ebd th\u1eed &#8220;ch\u01a1i l\u1edbn&#8221; d\u1ea1y m\u00e1y t\u00ednh &#8220;h\u1ecdc&#8221; nh\u1eadn di\u1ec7n [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[19,38,87,59,88,63,23,24,25,64],"class_list":["post-395","post","type-post","status-publish","format-standard","hentry","category-natural-language-processing","tag-ai","tag-ainoodle","tag-fasttext","tag-glove","tag-language-detection","tag-lstm","tag-machine-learning","tag-mi-ai","tag-ml","tag-word-embeding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Th\u1eed &quot;ch\u01a1i l\u1edbn&quot; d\u1ea1y m\u00e1y t\u00ednh &quot;h\u1ecdc&quot; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef - M\u00ec AI<\/title>\n<meta name=\"description\" content=\"H\u00f4m nay m\u00ecnh xin vi\u1ebft m\u1ed9t b\u00e0i li\u00ean quan \u0111\u1ebfn NLP, Word Embeding nh\u00e9. Ch\u00fang ta s\u1ebd th\u1eed &quot;ch\u01a1i l\u1edbn&quot; d\u1ea1y m\u00e1y t\u00ednh &quot;h\u1ecdc&quot; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef xem n\u00f3 ra sao :D\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/miai.vn\/?p=395\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Th\u1eed &quot;ch\u01a1i l\u1edbn&quot; d\u1ea1y m\u00e1y t\u00ednh &quot;h\u1ecdc&quot; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef - M\u00ec AI\" \/>\n<meta property=\"og:description\" content=\"H\u00f4m nay m\u00ecnh xin vi\u1ebft m\u1ed9t b\u00e0i li\u00ean quan \u0111\u1ebfn NLP, Word Embeding nh\u00e9. Ch\u00fang ta s\u1ebd th\u1eed &quot;ch\u01a1i l\u1edbn&quot; d\u1ea1y m\u00e1y t\u00ednh &quot;h\u1ecdc&quot; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef xem n\u00f3 ra sao :D\" \/>\n<meta property=\"og:url\" content=\"https:\/\/miai.vn\/?p=395\" \/>\n<meta property=\"og:site_name\" content=\"M\u00ec AI\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-25T02:30:16+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/174.138.108.232\/wp-content\/uploads\/2017\/08\/language.png\" \/>\n<meta name=\"author\" content=\"Ch\u1ee7 ti\u1ec7m M\u00ec\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ch\u1ee7 ti\u1ec7m M\u00ec\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395\"},\"author\":{\"name\":\"Ch\u1ee7 ti\u1ec7m M\u00ec\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#\\\/schema\\\/person\\\/cc8bc24bb90bd3f596add82f3a59948c\"},\"headline\":\"Th\u1eed &#8220;ch\u01a1i l\u1edbn&#8221; d\u1ea1y m\u00e1y t\u00ednh &#8220;h\u1ecdc&#8221; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef b\u1eb1ng m\u1ea1ng LSTM\",\"datePublished\":\"2019-09-25T02:30:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395\"},\"wordCount\":1180,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/174.138.108.232\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/language.png\",\"keywords\":[\"ai\",\"ainoodle\",\"fasttext\",\"glove\",\"language detection\",\"LSTM\",\"machine learning\",\"m\u00ec ai\",\"ml\",\"word embeding\"],\"articleSection\":[\"Natural Language Processing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/miai.vn\\\/?p=395#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395\",\"url\":\"https:\\\/\\\/miai.vn\\\/?p=395\",\"name\":\"Th\u1eed \\\"ch\u01a1i l\u1edbn\\\" d\u1ea1y m\u00e1y t\u00ednh \\\"h\u1ecdc\\\" nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef - M\u00ec AI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/174.138.108.232\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/language.png\",\"datePublished\":\"2019-09-25T02:30:16+00:00\",\"description\":\"H\u00f4m nay m\u00ecnh xin vi\u1ebft m\u1ed9t b\u00e0i li\u00ean quan \u0111\u1ebfn NLP, Word Embeding nh\u00e9. Ch\u00fang ta s\u1ebd th\u1eed \\\"ch\u01a1i l\u1edbn\\\" d\u1ea1y m\u00e1y t\u00ednh \\\"h\u1ecdc\\\" nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef xem n\u00f3 ra sao :D\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/miai.vn\\\/?p=395\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395#primaryimage\",\"url\":\"http:\\\/\\\/174.138.108.232\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/language.png\",\"contentUrl\":\"http:\\\/\\\/174.138.108.232\\\/wp-content\\\/uploads\\\/2017\\\/08\\\/language.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/miai.vn\\\/?p=395#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/miai.vn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Th\u1eed &#8220;ch\u01a1i l\u1edbn&#8221; d\u1ea1y m\u00e1y t\u00ednh &#8220;h\u1ecdc&#8221; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef b\u1eb1ng m\u1ea1ng LSTM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#website\",\"url\":\"https:\\\/\\\/miai.vn\\\/\",\"name\":\"M\u00ec AI\",\"description\":\"H\u1ecdc AI theo c\u00e1ch M\u00ec \u0103n li\u1ec1n!\",\"publisher\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/miai.vn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#organization\",\"name\":\"M\u00ec AI\",\"url\":\"https:\\\/\\\/miai.vn\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/miai.vn\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/cropped-Logo_w_slogan.png\",\"contentUrl\":\"https:\\\/\\\/miai.vn\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/cropped-Logo_w_slogan.png\",\"width\":240,\"height\":193,\"caption\":\"M\u00ec AI\"},\"image\":{\"@id\":\"https:\\\/\\\/miai.vn\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/miai.vn\\\/#\\\/schema\\\/person\\\/cc8bc24bb90bd3f596add82f3a59948c\",\"name\":\"Ch\u1ee7 ti\u1ec7m M\u00ec\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g\",\"caption\":\"Ch\u1ee7 ti\u1ec7m M\u00ec\"},\"sameAs\":[\"https:\\\/\\\/miai.vn\"],\"url\":\"https:\\\/\\\/miai.vn\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Th\u1eed \"ch\u01a1i l\u1edbn\" d\u1ea1y m\u00e1y t\u00ednh \"h\u1ecdc\" nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef - M\u00ec AI","description":"H\u00f4m nay m\u00ecnh xin vi\u1ebft m\u1ed9t b\u00e0i li\u00ean quan \u0111\u1ebfn NLP, Word Embeding nh\u00e9. Ch\u00fang ta s\u1ebd th\u1eed \"ch\u01a1i l\u1edbn\" d\u1ea1y m\u00e1y t\u00ednh \"h\u1ecdc\" nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef xem n\u00f3 ra sao :D","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/miai.vn\/?p=395","og_locale":"en_US","og_type":"article","og_title":"Th\u1eed \"ch\u01a1i l\u1edbn\" d\u1ea1y m\u00e1y t\u00ednh \"h\u1ecdc\" nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef - M\u00ec AI","og_description":"H\u00f4m nay m\u00ecnh xin vi\u1ebft m\u1ed9t b\u00e0i li\u00ean quan \u0111\u1ebfn NLP, Word Embeding nh\u00e9. Ch\u00fang ta s\u1ebd th\u1eed \"ch\u01a1i l\u1edbn\" d\u1ea1y m\u00e1y t\u00ednh \"h\u1ecdc\" nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef xem n\u00f3 ra sao :D","og_url":"https:\/\/miai.vn\/?p=395","og_site_name":"M\u00ec AI","article_published_time":"2019-09-25T02:30:16+00:00","og_image":[{"url":"http:\/\/174.138.108.232\/wp-content\/uploads\/2017\/08\/language.png","type":"","width":"","height":""}],"author":"Ch\u1ee7 ti\u1ec7m M\u00ec","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ch\u1ee7 ti\u1ec7m M\u00ec","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/miai.vn\/?p=395#article","isPartOf":{"@id":"https:\/\/miai.vn\/?p=395"},"author":{"name":"Ch\u1ee7 ti\u1ec7m M\u00ec","@id":"https:\/\/miai.vn\/#\/schema\/person\/cc8bc24bb90bd3f596add82f3a59948c"},"headline":"Th\u1eed &#8220;ch\u01a1i l\u1edbn&#8221; d\u1ea1y m\u00e1y t\u00ednh &#8220;h\u1ecdc&#8221; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef b\u1eb1ng m\u1ea1ng LSTM","datePublished":"2019-09-25T02:30:16+00:00","mainEntityOfPage":{"@id":"https:\/\/miai.vn\/?p=395"},"wordCount":1180,"commentCount":4,"publisher":{"@id":"https:\/\/miai.vn\/#organization"},"image":{"@id":"https:\/\/miai.vn\/?p=395#primaryimage"},"thumbnailUrl":"http:\/\/174.138.108.232\/wp-content\/uploads\/2017\/08\/language.png","keywords":["ai","ainoodle","fasttext","glove","language detection","LSTM","machine learning","m\u00ec ai","ml","word embeding"],"articleSection":["Natural Language Processing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/miai.vn\/?p=395#respond"]}]},{"@type":"WebPage","@id":"https:\/\/miai.vn\/?p=395","url":"https:\/\/miai.vn\/?p=395","name":"Th\u1eed \"ch\u01a1i l\u1edbn\" d\u1ea1y m\u00e1y t\u00ednh \"h\u1ecdc\" nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef - M\u00ec AI","isPartOf":{"@id":"https:\/\/miai.vn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/miai.vn\/?p=395#primaryimage"},"image":{"@id":"https:\/\/miai.vn\/?p=395#primaryimage"},"thumbnailUrl":"http:\/\/174.138.108.232\/wp-content\/uploads\/2017\/08\/language.png","datePublished":"2019-09-25T02:30:16+00:00","description":"H\u00f4m nay m\u00ecnh xin vi\u1ebft m\u1ed9t b\u00e0i li\u00ean quan \u0111\u1ebfn NLP, Word Embeding nh\u00e9. Ch\u00fang ta s\u1ebd th\u1eed \"ch\u01a1i l\u1edbn\" d\u1ea1y m\u00e1y t\u00ednh \"h\u1ecdc\" nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef xem n\u00f3 ra sao :D","breadcrumb":{"@id":"https:\/\/miai.vn\/?p=395#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/miai.vn\/?p=395"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/miai.vn\/?p=395#primaryimage","url":"http:\/\/174.138.108.232\/wp-content\/uploads\/2017\/08\/language.png","contentUrl":"http:\/\/174.138.108.232\/wp-content\/uploads\/2017\/08\/language.png"},{"@type":"BreadcrumbList","@id":"https:\/\/miai.vn\/?p=395#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/miai.vn\/"},{"@type":"ListItem","position":2,"name":"Th\u1eed &#8220;ch\u01a1i l\u1edbn&#8221; d\u1ea1y m\u00e1y t\u00ednh &#8220;h\u1ecdc&#8221; nh\u1eadn di\u1ec7n ngo\u1ea1i ng\u1eef b\u1eb1ng m\u1ea1ng LSTM"}]},{"@type":"WebSite","@id":"https:\/\/miai.vn\/#website","url":"https:\/\/miai.vn\/","name":"M\u00ec AI","description":"H\u1ecdc AI theo c\u00e1ch M\u00ec \u0103n li\u1ec1n!","publisher":{"@id":"https:\/\/miai.vn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/miai.vn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/miai.vn\/#organization","name":"M\u00ec AI","url":"https:\/\/miai.vn\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/miai.vn\/#\/schema\/logo\/image\/","url":"https:\/\/miai.vn\/wp-content\/uploads\/2026\/05\/cropped-Logo_w_slogan.png","contentUrl":"https:\/\/miai.vn\/wp-content\/uploads\/2026\/05\/cropped-Logo_w_slogan.png","width":240,"height":193,"caption":"M\u00ec AI"},"image":{"@id":"https:\/\/miai.vn\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/miai.vn\/#\/schema\/person\/cc8bc24bb90bd3f596add82f3a59948c","name":"Ch\u1ee7 ti\u1ec7m M\u00ec","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0b5124b0d2c0a8054d7127d2c236bdc3dc7a50e2d4e8728ab32eee5b122a8d1?s=96&d=mm&r=g","caption":"Ch\u1ee7 ti\u1ec7m M\u00ec"},"sameAs":["https:\/\/miai.vn"],"url":"https:\/\/miai.vn\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/posts\/395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/miai.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=395"}],"version-history":[{"count":0,"href":"https:\/\/miai.vn\/index.php?rest_route=\/wp\/v2\/posts\/395\/revisions"}],"wp:attachment":[{"href":"https:\/\/miai.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miai.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miai.vn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}