Metadata-Version: 2.1
Name: tablelinker-lib
Version: 1.0.0
Summary: A library of processes for manipulating tabular data in CSV format
Home-page: https://github.com/KMCS-NII/tablelinker-lib
Keywords: CSV,tabular,manipulation,cleansing
Author: Akiko Aizawa
Author-email: akiko@nii.ac.jp
Maintainer: Takeshi Sagara
Maintainer-email: sagara@info-proto.com
Requires-Python: >=3.8.1,<3.11.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows :: Windows 11
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3
Requires-Dist: charset-normalizer (>=3.0.1,<4.0.0)
Requires-Dist: docopt (>=0.6.2,<0.7.0)
Requires-Dist: fugashi (>=1.2.1,<2.0.0)
Requires-Dist: install (>=1.3.5,<2.0.0)
Requires-Dist: ipadic (>=1.0.0,<2.0.0)
Requires-Dist: jaconv (>=0.3.3,<0.4.0)
Requires-Dist: jageocoder (>=1.4.0,<2.0.0)
Requires-Dist: jeraconv (>=0.2.1,<0.3.0)
Requires-Dist: munkres (>=1.1.4,<2.0.0)
Requires-Dist: openpyxl (>=3.0.10,<4.0.0)
Requires-Dist: pandas (>=1.5.2,<2.0.0)
Requires-Dist: requests (>=2.28.1,<3.0.0)
Requires-Dist: torch (>=1.13.1,<2.0.0)
Requires-Dist: transformers (>=4.25.1,<5.0.0)
Requires-Dist: xlrd (>=2.0.1,<3.0.0)
Project-URL: Documentation, https://www2.info-proto.com/tablelinker/
Project-URL: Repository, https://github.com/KMCS-NII/tablelinker-lib
Description-Content-Type: text/markdown

# tablelinker-lib

TableLinker をコマンドライン / プログラム組み込みで利用するためのライブラリ。

## インストール手順

Poetry を利用します。

```
$ poetry install --with group=dev
$ poetry shell
```

MacOS の場合、デフォルトの python バージョンが 3.11 なので
pytorch がインストールできません。以下の手順が必要です。

```
% pyenv install 3.10
% poetry env use 3.10
% poetry shell
% poetry install --with group=dev
```

## コマンドラインで利用する場合

tablelinker モジュールを実行すると、標準入力から受け取った CSV を
コンバータで変換し、標準出力に送るパイプとして利用できます。

```
$ cat sample/datafiles/yanai_tourism.csv | \
  python -m tablelinker sample/taskfiles/task.json
```

利用するコンバータと、コンバータに渡すパラメータは JSON ファイルに記述し、
パラメータで指定します。

## 組み込んで利用する場合

`sample.py` を参照してください。

