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

Improve meta fields #2146

Open
koheiw opened this issue Oct 26, 2021 · 0 comments
Open

Improve meta fields #2146

koheiw opened this issue Oct 26, 2021 · 0 comments
Assignees
Milestone

Comments

@koheiw
Copy link
Collaborator

koheiw commented Oct 26, 2021

If tokens_compound() is used, it should be recorded in the meta field, probably in ngram.

> attr(tokens_compound(tokens("aa bb cc"), phrase("aa bb")), "meta")$object
$unit
[1] "documents"

$what
[1] "word"

$ngram
[1] 1

$skip
[1] 0

$concatenator
[1] "_"

$summary
$summary$hash
character(0)

$summary$data
NULL

Also, we probably do not need summary any more.

@koheiw koheiw self-assigned this Oct 26, 2021
@kbenoit kbenoit added this to the v4 release milestone Apr 12, 2023
@kbenoit kbenoit modified the milestones: v4 release, v4.1 Oct 18, 2023
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