ThirdParty/CharDet/chardet/langthaimodel.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 3537
7662053c3906
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
23 # License along with this library; if not, write to the Free Software 23 # License along with this library; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 24 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 # 02110-1301 USA 25 # 02110-1301 USA
26 ######################### END LICENSE BLOCK ######################### 26 ######################### END LICENSE BLOCK #########################
27 27
28 import constants 28 from . import constants
29 29
30 # 255: Control characters that usually does not exist in any text 30 # 255: Control characters that usually does not exist in any text
31 # 254: Carriage/Return 31 # 254: Carriage/Return
32 # 253: symbol (punctuation) that does not belong to word 32 # 253: symbol (punctuation) that does not belong to word
33 # 252: 0 - 9 33 # 252: 0 - 9
193 193
194 TIS620ThaiModel = { \ 194 TIS620ThaiModel = { \
195 'charToOrderMap': TIS620CharToOrderMap, 195 'charToOrderMap': TIS620CharToOrderMap,
196 'precedenceMatrix': ThaiLangModel, 196 'precedenceMatrix': ThaiLangModel,
197 'mTypicalPositiveRatio': 0.926386, 197 'mTypicalPositiveRatio': 0.926386,
198 'keepEnglishLetter': constants.False, 198 'keepEnglishLetter': False,
199 'charsetName': "TIS-620" 199 'charsetName': "TIS-620"
200 } 200 }

eric ide

mercurial