-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds type information, moves metadata to pyproject.toml
- Loading branch information
Showing
4 changed files
with
66 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,59 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42,<72.2.0", | ||
"setuptools>=60,<72.2.0", | ||
"pybind11>=2.10.0" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "sfst-transduce" | ||
description = "Python bindings for SFST focusing on transducer usage" | ||
authors = [{name = "Gregor Middell", email = "[email protected]"}] | ||
keywords = [ | ||
"Finite-state Transducer", | ||
"Morphological Analysis", | ||
"Natural Language Processing", | ||
"NLP", | ||
"SFST", | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)", | ||
"Operating System :: MacOS", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: C++", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: Implementation", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Education", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Text Processing :: Linguistic", | ||
] | ||
requires-python = ">=3.8" | ||
dynamic = ["dependencies", "version", "readme"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/zentrum-lexikographie/sfst-transduce" | ||
Repository = "https://github.com/zentrum-lexikographie/sfst-transduce.git" | ||
|
||
[tool.cibuildwheel] | ||
test-requires = "pytest" | ||
test-command = "pytest {project}/tests" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {file = ["VERSION"]} | ||
readme = {file = ["README.md"], content-type = "text/markdown"} | ||
|
||
[tool.setuptools.package-data] | ||
sfst_transduce = ["py.typed", "sfst_transduce.pyi"] |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from typing import List | ||
|
||
class Transducer: | ||
@staticmethod | ||
def create(filename: str) -> CompactTransducer: | ||
pass | ||
def analyse(self, s: str) -> List[str]: | ||
pass | ||
def generate(self, s: str) -> List[str]: | ||
pass | ||
|
||
class CompactTransducer: | ||
@staticmethod | ||
def create(filename: str) -> CompactTransducer: | ||
pass | ||
def analyse(self, s: str) -> List[str]: | ||
pass | ||
def generate(self, s: str) -> List[str]: | ||
pass |