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

Allow identifiers on EDS serializations #323

Closed
goodmami opened this issue Dec 16, 2020 · 0 comments
Closed

Allow identifiers on EDS serializations #323

goodmami opened this issue Dec 16, 2020 · 0 comments

Comments

@goodmami
Copy link
Member

Following the discussion here, a native-serialized EDS should be able to have an optional identifier:

#4711
{e2:
 e2:_bark_v_1{e}[ARG1 x4]
 _1:udef_q[BV x4]
 x4:_dog_n_1{x}[]
}

SimpleDMRS, for instance, already has this:

>>> from delphin.codecs import simpledmrs
>>> from delphin.dmrs import DMRS, Node, Link
>>> d = DMRS(1, nodes=[Node(1, '_rain_v_1', 'e')], links=[], identifier='4711')
>>> print(simpledmrs.encode(d))
dmrs 4711 { [top=1] 1 [_rain_v_1 e]; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant