You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
extract SpaceAfter from MISC when loading CoNLL-U files and save it there in Write::CoNLLU.
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).
The text was updated successfully, but these errors were encountered:
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:
$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 valuesYes
andNo
(withYes
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).The text was updated successfully, but these errors were encountered: