# -*- coding: utf-8 -*-
from __future__ import absolute_import,unicode_literals
import six
import sys
if six.PY2:
	print("Thai sentiment in pythainlp. Not support python 2.7")
	sys.exit(0)
from builtins import open
import pythainlp
import os
from pythainlp.tokenize import word_tokenize
import dill
templates_dir = os.path.join(os.path.dirname(pythainlp.__file__), 'sentiment')
def sentiment(text):
	"""รับค่าสตริง str คืนค่า pos หรือ neg"""
	with open(os.path.join(templates_dir, 'vocabulary.data'), 'rb') as in_strm:
		vocabulary = dill.load(in_strm)
	in_strm.close()
	with open(os.path.join(templates_dir, 'sentiment.data'), 'rb') as in_strm:
		classifier = dill.load(in_strm)
	in_strm.close()
	featurized_test_sentence =  {i:(i in word_tokenize(text.lower())) for i in vocabulary}
	return classifier.classify(featurized_test_sentence)
@@ -396,16 +396,118 @@
 t):%0A%09%22%22%22
+%0A%09sentiment %E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B9%84%E0%B8%97%E0%B8%A2%0A%09%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B8%88%E0%B8%B2%E0%B8%81 https://github.com/wannaphongcom/lexicon-thai/tree/master/%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1/%0A%09
 %E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B8%AA%E0%B8%95
@@ -529,16 +529,26 @@
 pos 
+, neg 
 %E0%B8%AB%E0%B8%A3%E0%B8%B7%E0%B8%AD ne
-g
+utral
 %22%22%22%0A

fix docs in sentiment