Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datum's necessity #83

Open
noobOriented opened this issue Feb 1, 2019 · 1 comment
Open

Datum's necessity #83

noobOriented opened this issue Feb 1, 2019 · 1 comment

Comments

@noobOriented
Copy link
Contributor

Datum 只是一個外面打包完傳一層就解開的 data class

有這個必要讓外面先打包好嗎?
還是可以改成 transform 直接吃 Datum init 的參數即可?

@stegben
Copy link
Contributor

stegben commented Feb 11, 2019

你說的這件事應該是這個模組的功能。如果需要一個更簡便的,可以擴展一個:

from uttut.transformer import PureUtterance

raw_utts = ["第一句", "第二句"]

data = PureUtterance().mechanize(raw_utts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants