Skip to content

Commit d213a8a

Browse files
authored
Merge pull request #876 from pavaris-pm/update-license
switch PyThaiNLP source code to SPDX license ID
2 parents f877567 + f86c23b commit d213a8a

File tree

162 files changed

+324
-2111
lines changed

Some content is hidden

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

162 files changed

+324
-2111
lines changed

pythainlp/__init__.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# PyThaiNLP: Thai Natural Language Processing in Python
3-
#
4-
# Copyright (C) 2016-2023 PyThaiNLP Project
5-
#
6-
# Licensed under the Apache License, Version 2.0 (the "License");
7-
# you may not use this file except in compliance with the License.
8-
# You may obtain a copy of the License at
9-
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
11-
#
12-
# Unless required by applicable law or agreed to in writing, software
13-
# distributed under the License is distributed on an "AS IS" BASIS,
14-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
# See the License for the specific language governing permissions and
16-
# limitations under the License.
17-
#
18-
# URL: <https://pythainlp.github.io/>
19-
# For license information, see LICENSE
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
204
__version__ = "5.0.0dev0"
215

226
thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars

pythainlp/__main__.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2016-2023 PyThaiNLP Project
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
154
import argparse
165
import sys
176

pythainlp/ancient/__init__.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2016-2023 PyThaiNLP Project
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
154
"""
165
Ancient versions of the Thai language
176
"""

pythainlp/ancient/aksonhan.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2016-2023 PyThaiNLP Project
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
154
from pythainlp.util import Trie
165
from pythainlp import thai_consonants,thai_tonemarks
176
from pythainlp.tokenize import Tokenizer

pythainlp/augment/__init__.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2016-2023 PyThaiNLP Project
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
154
"""
165
Thai text augment
176
"""

pythainlp/augment/lm/__init__.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2016-2023 PyThaiNLP Project
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
154
"""
165
LM
176
"""

pythainlp/augment/lm/fasttext.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2016-2023 PyThaiNLP Project
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
154
import itertools
165
from typing import List, Tuple
176
from gensim.models.fasttext import FastText as FastText_gensim

pythainlp/augment/lm/wangchanberta.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2016-2023 PyThaiNLP Project
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
154
from typing import List
165
from transformers import (
176
CamembertTokenizer,

pythainlp/augment/word2vec/__init__.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2016-2023 PyThaiNLP Project
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
154
"""
165
Word2Vec
176
"""

pythainlp/augment/word2vec/bpemb_wv.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2016-2023 PyThaiNLP Project
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
2+
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project
3+
# SPDX-License-Identifier: Apache-2.0
154
from typing import List, Tuple
165
from pythainlp.augment.word2vec.core import Word2VecAug
176

0 commit comments

Comments
 (0)