-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from bact/add-license-spdx-in-bindings
Add license header to bindings
- Loading branch information
Showing
21 changed files
with
146 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "nlpo3-cli" | ||
version = "0.2.0" | ||
version = "0.2.1-dev" | ||
edition = "2018" | ||
authors = ["Vee Satayamas <[email protected]>"] | ||
description = "Command line interface for nlpO3, a Thai natural language processing library" | ||
|
@@ -18,4 +18,4 @@ path = "src/main.rs" | |
|
||
[dependencies] | ||
clap = { version = "3.0.0-beta.2" } | ||
nlpo3 = { version = "1.2.0" } | ||
nlpo3 = { version = "1.4.0" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// SPDX-FileCopyrightText: 2024 PyThaiNLP Project | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
export function segment(text: string, dict_name: string, safe: boolean, parallel: boolean): string[]; | ||
/** file_path is an absolute path */ | ||
export function loadDict(file_path: string, dict_name: string): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,4 +45,4 @@ | |
"files": [ | ||
"nlpo3" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
[package] | ||
name = "nlpo3-python" | ||
version = "1.3.0" | ||
version = "1.3.1-dev" | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
authors = ["Thanathip Suntorntip Gorlph"] | ||
description = "Python binding for nlpO3 Thai language processing library" | ||
exclude = ["notebooks"] | ||
keywords = ["thai", "tokenizer", "nlp", "word-segmentation", "python"] | ||
|
||
[lib] | ||
name = "_nlpo3_python_backend" | ||
path = "src/lib.rs" | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[dependencies] | ||
ahash = "0.7.6" | ||
lazy_static = "1.4.0" | ||
nlpo3 = "1.3.2" | ||
ahash = "0.8.6" | ||
lazy_static = "1.5.0" | ||
nlpo3 = "1.4.0" | ||
|
||
[dependencies.pyo3] | ||
version = "0.15.0" | ||
version = "0.22.6" | ||
features = ["extension-module"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.