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

Better API for misc #5

Open
martinpopel opened this issue Jul 15, 2016 · 0 comments
Open

Better API for misc #5

martinpopel opened this issue Jul 15, 2016 · 0 comments

Comments

@martinpopel
Copy link
Contributor

Currently, the misc attribute is treated as string, so we need to use code like $node->misc =~ /SpaceAfter=No/.
It would be more user friendly to access it (especially when editing) as $node->misc->{AttributeName}.
See related #4.

It is a question whether to deserialize misc always within Read::CoNLL-U or whether to do it only lazily when first accessed.
The latter option could be faster in cases no access is needed in the whole scenario (so there we can skip serialization from hash to string).

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