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

Separate attribute for SpaceAfter #4

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

Separate attribute for SpaceAfter #4

martinpopel opened this issue Jul 15, 2016 · 0 comments

Comments

@martinpopel
Copy link
Contributor

The last column (MISC) in CoNLL-U may contain SpaceAfter=No.
SpaceAfter is a standardized language-independent attribute (unlike other features stored in MISC).
We should consider providing a special attribute (setter and getter) for it:
$node->set_space_after(1) if !$node->space_after;
It is shorter (more user friendly, I hope) than accessing it through $node->misc.

Options:

  1. extract SpaceAfter from MISC when loading CoNLL-U files and save it there in Write::CoNLLU.
  2. keep $node->space_after as an alias/shortcut for $node->misc->{SpaceAfter}, so users are not surprised that it is missing there.
    However, $node->misc->{SpaceAfter} has possible values Yes and No (with Yes being the default - it probably should be never stored there explicitly), while $node->space_after should have the usual Perl boolean values (undef and 1).
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