Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
pythainlp-dev/pythainlp/parse/spacy_thai_engine.py
pythainlp-dev/pythainlp/parse/spacy_thai_engine.py
# -*- coding: utf-8 -*- """ spacy_thai: Tokenizer, POS-tagger, and dependency-parser for Thai language, working on Universal Dependencies. GitHub: https://github.com/KoichiYasuoka/spacy-thai """ from typing import List, Union import spacy_thai class Parse: def __init__(self, model: str = "th") -> None: s...
1,664
28.732143
110
py
pythainlp-dev/pythainlp/parse/transformers_ud.py
pythainlp-dev/pythainlp/parse/transformers_ud.py
# -*- coding: utf-8 -*- """ TransformersUD Author: Prof. Koichi Yasuoka This tagger is provided under the terms of the apache-2.0 License. The source: https://huggingface.co/KoichiYasuoka/deberta-base-thai-ud-head GitHub: https://github.com/KoichiYasuoka """ import os from typing import List, Union import numpy imp...
4,903
33.055556
76
py
pythainlp-dev/pythainlp/parse/ud_goeswith.py
pythainlp-dev/pythainlp/parse/ud_goeswith.py
# -*- coding: utf-8 -*- """ UDgoeswith Author: Prof. Koichi Yasuoka This tagger is provided under the terms of the apache-2.0 License. The source: https://huggingface.co/KoichiYasuoka/deberta-base-thai-ud-goeswith GitHub: https://github.com/KoichiYasuoka """ from typing import List, Union from transformers import A...
3,930
36.438095
95
py
pythainlp-dev/pythainlp/soundex/__init__.py
pythainlp-dev/pythainlp/soundex/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,092
28.540541
74
py
pythainlp-dev/pythainlp/soundex/core.py
pythainlp-dev/pythainlp/soundex/core.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,365
35.586957
76
py
pythainlp-dev/pythainlp/soundex/lk82.py
pythainlp-dev/pythainlp/soundex/lk82.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
4,044
28.962963
78
py
pythainlp-dev/pythainlp/soundex/metasound.py
pythainlp-dev/pythainlp/soundex/metasound.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,256
26.369748
78
py
pythainlp-dev/pythainlp/soundex/prayut_and_somchaip.py
pythainlp-dev/pythainlp/soundex/prayut_and_somchaip.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,063
29.64
245
py
pythainlp-dev/pythainlp/soundex/sound.py
pythainlp-dev/pythainlp/soundex/sound.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,789
28.368421
159
py
pythainlp-dev/pythainlp/soundex/udom83.py
pythainlp-dev/pythainlp/soundex/udom83.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,899
26.358491
78
py
pythainlp-dev/pythainlp/spell/__init__.py
pythainlp-dev/pythainlp/spell/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
970
28.424242
74
py
pythainlp-dev/pythainlp/spell/core.py
pythainlp-dev/pythainlp/spell/core.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
5,977
29.5
79
py
pythainlp-dev/pythainlp/spell/phunspell.py
pythainlp-dev/pythainlp/spell/phunspell.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
993
26.611111
74
py
pythainlp-dev/pythainlp/spell/pn.py
pythainlp-dev/pythainlp/spell/pn.py
# -*- coding: utf-8 -*- """ Spell checker, using Peter Norvig algorithm. Spelling dictionary can be customized. Default spelling dictionary is based on Thai National Corpus. Based on Peter Norvig's Python code from http://norvig.com/spell-correct.html """ from collections import Counter from string import digits from ...
11,522
29.892761
78
py
pythainlp-dev/pythainlp/spell/symspellpy.py
pythainlp-dev/pythainlp/spell/symspellpy.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,290
27.6375
79
py
pythainlp-dev/pythainlp/spell/tltk.py
pythainlp-dev/pythainlp/spell/tltk.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
952
27.878788
80
py
pythainlp-dev/pythainlp/summarize/__init__.py
pythainlp-dev/pythainlp/summarize/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
902
33.730769
74
py
pythainlp-dev/pythainlp/summarize/core.py
pythainlp-dev/pythainlp/summarize/core.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
9,703
35.897338
118
py
pythainlp-dev/pythainlp/summarize/freq.py
pythainlp-dev/pythainlp/summarize/freq.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,529
32.289474
74
py
pythainlp-dev/pythainlp/summarize/keybert.py
pythainlp-dev/pythainlp/summarize/keybert.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
8,572
34.720833
119
py
pythainlp-dev/pythainlp/summarize/mt5.py
pythainlp-dev/pythainlp/summarize/mt5.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,006
37.551282
79
py
pythainlp-dev/pythainlp/tag/__init__.py
pythainlp-dev/pythainlp/tag/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,181
30.945946
74
py
pythainlp-dev/pythainlp/tag/_tag_perceptron.py
pythainlp-dev/pythainlp/tag/_tag_perceptron.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
10,394
34.237288
110
py
pythainlp-dev/pythainlp/tag/blackboard.py
pythainlp-dev/pythainlp/tag/blackboard.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,238
27.341772
78
py
pythainlp-dev/pythainlp/tag/chunk.py
pythainlp-dev/pythainlp/tag/chunk.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,485
31.304348
78
py
pythainlp-dev/pythainlp/tag/crfchunk.py
pythainlp-dev/pythainlp/tag/crfchunk.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,769
33.197531
74
py
pythainlp-dev/pythainlp/tag/locations.py
pythainlp-dev/pythainlp/tag/locations.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,449
28.591837
74
py
pythainlp-dev/pythainlp/tag/named_entity.py
pythainlp-dev/pythainlp/tag/named_entity.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
5,628
31.726744
96
py
pythainlp-dev/pythainlp/tag/orchid.py
pythainlp-dev/pythainlp/tag/orchid.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
4,064
22.49711
78
py
pythainlp-dev/pythainlp/tag/perceptron.py
pythainlp-dev/pythainlp/tag/perceptron.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,617
29.091954
74
py
pythainlp-dev/pythainlp/tag/pos_tag.py
pythainlp-dev/pythainlp/tag/pos_tag.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
6,938
37.765363
113
py
pythainlp-dev/pythainlp/tag/thai_nner.py
pythainlp-dev/pythainlp/tag/thai_nner.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
963
36.076923
79
py
pythainlp-dev/pythainlp/tag/thainer.py
pythainlp-dev/pythainlp/tag/thainer.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
7,716
34.399083
78
py
pythainlp-dev/pythainlp/tag/tltk.py
pythainlp-dev/pythainlp/tag/tltk.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,632
32.638889
80
py
pythainlp-dev/pythainlp/tag/unigram.py
pythainlp-dev/pythainlp/tag/unigram.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,000
29.01
74
py
pythainlp-dev/pythainlp/tag/wangchanberta_onnx.py
pythainlp-dev/pythainlp/tag/wangchanberta_onnx.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
4,312
31.923664
78
py
pythainlp-dev/pythainlp/tokenize/__init__.py
pythainlp-dev/pythainlp/tokenize/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,629
27.103448
75
py
pythainlp-dev/pythainlp/tokenize/_utils.py
pythainlp-dev/pythainlp/tokenize/_utils.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,426
32.930693
120
py
pythainlp-dev/pythainlp/tokenize/attacut.py
pythainlp-dev/pythainlp/tokenize/attacut.py
# -*- coding: utf-8 -* # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
1,824
31.589286
78
py
pythainlp-dev/pythainlp/tokenize/core.py
pythainlp-dev/pythainlp/tokenize/core.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
25,995
34.320652
110
py
pythainlp-dev/pythainlp/tokenize/crfcls.py
pythainlp-dev/pythainlp/tokenize/crfcls.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,650
29.125
74
py
pythainlp-dev/pythainlp/tokenize/crfcut.py
pythainlp-dev/pythainlp/tokenize/crfcut.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
5,136
22.13964
77
py
pythainlp-dev/pythainlp/tokenize/deepcut.py
pythainlp-dev/pythainlp/tokenize/deepcut.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,432
29.489362
76
py
pythainlp-dev/pythainlp/tokenize/etcc.py
pythainlp-dev/pythainlp/tokenize/etcc.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,661
33.128205
79
py
pythainlp-dev/pythainlp/tokenize/longest.py
pythainlp-dev/pythainlp/tokenize/longest.py
# -*- coding: utf-8 -*- """ Dictionary-based longest-matching Thai word segmentation. Implementation based on the code from Patorn Utenpattanun. :See Also: * `GitHub Repository \ <https://github.com/patorn/thaitokenizer/blob/master/thaitokenizer/tokenizer.py>`_ """ import re from typing import List, Union ...
4,237
25.822785
89
py
pythainlp-dev/pythainlp/tokenize/multi_cut.py
pythainlp-dev/pythainlp/tokenize/multi_cut.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
5,032
28.092486
86
py
pythainlp-dev/pythainlp/tokenize/nercut.py
pythainlp-dev/pythainlp/tokenize/nercut.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,731
29.355556
74
py
pythainlp-dev/pythainlp/tokenize/newmm.py
pythainlp-dev/pythainlp/tokenize/newmm.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
7,379
32.393665
103
py
pythainlp-dev/pythainlp/tokenize/nlpo3.py
pythainlp-dev/pythainlp/tokenize/nlpo3.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,614
31.283951
79
py
pythainlp-dev/pythainlp/tokenize/oskut.py
pythainlp-dev/pythainlp/tokenize/oskut.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,299
32.333333
76
py
pythainlp-dev/pythainlp/tokenize/pyicu.py
pythainlp-dev/pythainlp/tokenize/pyicu.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,444
28.489796
74
py
pythainlp-dev/pythainlp/tokenize/sefr_cut.py
pythainlp-dev/pythainlp/tokenize/sefr_cut.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,231
31.421053
74
py
pythainlp-dev/pythainlp/tokenize/ssg.py
pythainlp-dev/pythainlp/tokenize/ssg.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
861
29.785714
74
py
pythainlp-dev/pythainlp/tokenize/tcc.py
pythainlp-dev/pythainlp/tokenize/tcc.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,733
20.527559
77
py
pythainlp-dev/pythainlp/tokenize/tcc_p.py
pythainlp-dev/pythainlp/tokenize/tcc_p.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,749
20.653543
77
py
pythainlp-dev/pythainlp/tokenize/thaisumcut.py
pythainlp-dev/pythainlp/tokenize/thaisumcut.py
# -*- coding: utf-8 -*- """ The implementation of sentence segmentator from Nakhun Chumpolsathien, 2020 original code from: https://github.com/nakhunchumpolsathien/ThaiSum Cite: @mastersthesis{chumpolsathien_2020, title={Using Knowledge Distillation from Keyword Extraction to Improve the Informativeness of Neural...
17,291
43.112245
246
py
pythainlp-dev/pythainlp/tokenize/tltk.py
pythainlp-dev/pythainlp/tokenize/tltk.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,624
30.862745
80
py
pythainlp-dev/pythainlp/tokenize/wtsplit.py
pythainlp-dev/pythainlp/tokenize/wtsplit.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,929
31.166667
108
py
pythainlp-dev/pythainlp/tools/__init__.py
pythainlp-dev/pythainlp/tools/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
892
30.892857
74
py
pythainlp-dev/pythainlp/tools/misspell.py
pythainlp-dev/pythainlp/tools/misspell.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
4,233
26.316129
78
py
pythainlp-dev/pythainlp/tools/path.py
pythainlp-dev/pythainlp/tools/path.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,479
26.865169
75
py
pythainlp-dev/pythainlp/translate/__init__.py
pythainlp-dev/pythainlp/translate/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
836
30
74
py
pythainlp-dev/pythainlp/translate/core.py
pythainlp-dev/pythainlp/translate/core.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
4,257
33.33871
92
py
pythainlp-dev/pythainlp/translate/en_th.py
pythainlp-dev/pythainlp/translate/en_th.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
5,169
28.375
75
py
pythainlp-dev/pythainlp/translate/small100.py
pythainlp-dev/pythainlp/translate/small100.py
from transformers import M2M100ForConditionalGeneration from .tokenization_small100 import SMALL100Tokenizer class Small100Translator: """ Machine Translation with small100 model - Huggingface https://huggingface.co/alirezamsh/small100 :param bool use_gpu : load model to gpu (Default is False) ""...
1,897
30.114754
98
py
pythainlp-dev/pythainlp/translate/th_fr.py
pythainlp-dev/pythainlp/translate/th_fr.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,344
27.950617
79
py
pythainlp-dev/pythainlp/translate/tokenization_small100.py
pythainlp-dev/pythainlp/translate/tokenization_small100.py
# Copyright (c) 2022 Idiap Research Institute, http://www.idiap.ch/ # Written by Alireza Mohammadshahi <alireza.mohammadshahi@idiap.ch> # This is a modified version of https://github.com/huggingface/transformers/blob/main/src/transformers/models/m2m_100/tokenization_m2m_100.py # which owns by Fariseq Authors and The H...
15,955
42.955923
617
py
pythainlp-dev/pythainlp/translate/zh_th.py
pythainlp-dev/pythainlp/translate/zh_th.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,677
28.190476
78
py
pythainlp-dev/pythainlp/transliterate/__init__.py
pythainlp-dev/pythainlp/transliterate/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
834
35.304348
77
py
pythainlp-dev/pythainlp/transliterate/core.py
pythainlp-dev/pythainlp/transliterate/core.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
6,969
32.033175
138
py
pythainlp-dev/pythainlp/transliterate/ipa.py
pythainlp-dev/pythainlp/transliterate/ipa.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,092
26.325
74
py
pythainlp-dev/pythainlp/transliterate/iso_11940.py
pythainlp-dev/pythainlp/transliterate/iso_11940.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,860
18.201342
74
py
pythainlp-dev/pythainlp/transliterate/lookup.py
pythainlp-dev/pythainlp/transliterate/lookup.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,815
32.52381
89
py
pythainlp-dev/pythainlp/transliterate/pyicu.py
pythainlp-dev/pythainlp/transliterate/pyicu.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,236
34.342857
103
py
pythainlp-dev/pythainlp/transliterate/royin.py
pythainlp-dev/pythainlp/transliterate/royin.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
5,720
23.659483
93
py
pythainlp-dev/pythainlp/transliterate/spoonerism.py
pythainlp-dev/pythainlp/transliterate/spoonerism.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,846
30.633333
78
py
pythainlp-dev/pythainlp/transliterate/thai2rom.py
pythainlp-dev/pythainlp/transliterate/thai2rom.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
11,993
31.416216
79
py
pythainlp-dev/pythainlp/transliterate/thai2rom_onnx.py
pythainlp-dev/pythainlp/transliterate/thai2rom_onnx.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
6,477
31.717172
86
py
pythainlp-dev/pythainlp/transliterate/thaig2p.py
pythainlp-dev/pythainlp/transliterate/thaig2p.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
12,039
31.021277
79
py
pythainlp-dev/pythainlp/transliterate/tltk.py
pythainlp-dev/pythainlp/transliterate/tltk.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
1,370
32.439024
80
py
pythainlp-dev/pythainlp/transliterate/w2p.py
pythainlp-dev/pythainlp/transliterate/w2p.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
6,890
30.180995
78
py
pythainlp-dev/pythainlp/transliterate/wunsen.py
pythainlp-dev/pythainlp/transliterate/wunsen.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
5,232
32.33121
76
py
pythainlp-dev/pythainlp/ulmfit/__init__.py
pythainlp-dev/pythainlp/ulmfit/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,060
25.088608
74
py
pythainlp-dev/pythainlp/ulmfit/core.py
pythainlp-dev/pythainlp/ulmfit/core.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
8,731
31.340741
97
py
pythainlp-dev/pythainlp/ulmfit/preprocess.py
pythainlp-dev/pythainlp/ulmfit/preprocess.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
10,201
32.781457
2,015
py
pythainlp-dev/pythainlp/ulmfit/tokenizer.py
pythainlp-dev/pythainlp/ulmfit/tokenizer.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,623
31.395062
107
py
pythainlp-dev/pythainlp/util/__init__.py
pythainlp-dev/pythainlp/util/__init__.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
3,444
25.914063
79
py
pythainlp-dev/pythainlp/util/collate.py
pythainlp-dev/pythainlp/util/collate.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
2,176
33.555556
77
py
pythainlp-dev/pythainlp/util/date.py
pythainlp-dev/pythainlp/util/date.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
10,729
25.234719
77
py
pythainlp-dev/pythainlp/util/digitconv.py
pythainlp-dev/pythainlp/util/digitconv.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
5,249
23.881517
74
py
pythainlp-dev/pythainlp/util/emojiconv.py
pythainlp-dev/pythainlp/util/emojiconv.py
# -*- coding_utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
46,483
23.791467
77
py
pythainlp-dev/pythainlp/util/encoding.py
pythainlp-dev/pythainlp/util/encoding.py
# -*- coding_utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
1,022
30.96875
74
py
pythainlp-dev/pythainlp/util/keyboard.py
pythainlp-dev/pythainlp/util/keyboard.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
6,537
26.470588
77
py
pythainlp-dev/pythainlp/util/keywords.py
pythainlp-dev/pythainlp/util/keywords.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,592
30.243478
78
py
pythainlp-dev/pythainlp/util/normalize.py
pythainlp-dev/pythainlp/util/normalize.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
8,695
27.69967
92
py
pythainlp-dev/pythainlp/util/numtoword.py
pythainlp-dev/pythainlp/util/numtoword.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,355
24.233083
78
py
pythainlp-dev/pythainlp/util/phoneme.py
pythainlp-dev/pythainlp/util/phoneme.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
5,191
19.935484
155
py
pythainlp-dev/pythainlp/util/spell_words.py
pythainlp-dev/pythainlp/util/spell_words.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
3,873
31.016529
122
py
pythainlp-dev/pythainlp/util/strftime.py
pythainlp-dev/pythainlp/util/strftime.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
13,440
37.402857
124
py
pythainlp-dev/pythainlp/util/syllable.py
pythainlp-dev/pythainlp/util/syllable.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
9,765
28.683891
79
py