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

vectorizer 가 있으면 편리할 것 같습니다. #133

Open
shoutmen opened this issue May 3, 2021 · 0 comments
Open

vectorizer 가 있으면 편리할 것 같습니다. #133

shoutmen opened this issue May 3, 2021 · 0 comments

Comments

@shoutmen
Copy link

shoutmen commented May 3, 2021

아래의 예시와 같은 기능이 제공되는 vectorizer 가 있으면 편리할 것 같습니다.

vectorizer = Vectorizer(tokenizer=NounMatchTokenizer(noun_score))
vectorizer.tokenize("예문입니다캭") = ["예문", "입니다", "캭"]
vectorizer.encode("예문입니다") = [35, 54, 1]
vectorizer.convert_token_ids_to_str([35, 54, 1]) = ["예문", "입니다", "[Unk]"]
csr_matrix = vectorizer.to_bow(["예문입니다", "두문장입니다"])
@lovit lovit mentioned this issue Sep 9, 2022
4 tasks
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

1 participant