Skip to content

Commit 97b9613

Browse files
authored
Merge pull request #1032 from bact/add-spdx-filetype
Add SPDX FileType
2 parents 9a1274b + e3adf5b commit 97b9613

File tree

219 files changed

+235
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+235
-8
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
2+
# SPDX-FileType: SOURCE
23
# SPDX-License-Identifier: Apache-2.0
34

45
FROM python:3.8-slim-buster

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
3+
# SPDX-FileType: SOURCE
34
# SPDX-License-Identifier: Apache-2.0
45
#
56
# Configuration file for the Sphinx documentation builder.

examples/khavee.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# -*- coding: utf-8 -*-
22
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
3+
# SPDX-FileType: SOURCE
34
# SPDX-License-Identifier: Apache-2.0
4-
5-
# Example of using KhaveeVerifier from pythainlp.khavee
5+
"""
6+
Example of using KhaveeVerifier from pythainlp.khavee
7+
"""
68

79
from pythainlp.khavee import KhaveeVerifier
810

911

1012
kv = KhaveeVerifier()
1113

12-
1314
# การเช็คสระ
1415
print("เออ", kv.check_sara("เมอ"))
1516
# 'เออ'

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
2+
# SPDX-FileType: SOURCE
23
# SPDX-License-Identifier: Apache-2.0
34

45
[tool.ruff]

pythainlp/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
3+
# SPDX-FileType: SOURCE
34
# SPDX-License-Identifier: Apache-2.0
45
__version__ = "5.0.5-dev"
56

pythainlp/ancient/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
3+
# SPDX-FileType: SOURCE
34
# SPDX-License-Identifier: Apache-2.0
45
"""
56
Ancient versions of the Thai language

pythainlp/ancient/aksonhan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- coding: utf-8 -*-
22
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
3+
# SPDX-FileType: SOURCE
34
# SPDX-License-Identifier: Apache-2.0
5+
46
from pythainlp import thai_consonants, thai_tonemarks
57
from pythainlp.corpus import thai_orst_words
68
from pythainlp.tokenize import Tokenizer

pythainlp/augment/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
3+
# SPDX-FileType: SOURCE
34
# SPDX-License-Identifier: Apache-2.0
45
"""
56
Thai text augment

pythainlp/augment/lm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
3+
# SPDX-FileType: SOURCE
34
# SPDX-License-Identifier: Apache-2.0
45
"""
56
Language Models

pythainlp/augment/lm/fasttext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
3+
# SPDX-FileType: SOURCE
34
# SPDX-License-Identifier: Apache-2.0
45
import itertools
56
from typing import List, Tuple

0 commit comments

Comments
 (0)