Re: Converting a Natural Language Parse Tree to Notation3

On Fri, Oct 16, 2009 at 10:37 AM, naudts guido
<naudts_vannoten@yahoo.com> wrote:
> Hallo,
> this can be converted to N3 in the following manner:
> [:node "some_node eg VP"; :parentNode "parentNode1; :children ("childnode1" ..."childNoden")].
> Then you can query eg give all childnodes of VP:
> [:node "VP"; :children ?a].
> where ?a will be replaced by the children.
> (I translate XML to N3 in this manner).
> Of course you can easily add other characteristics to a node.
> With kind regards,

Interesting, thanks.

Just to clarify though, are you using the grammar tags as unique
identifiers? Isn't this impossible, since multiple nodes use the same
grammar tags (e.g. there are multiple VP nodes)?

Wouldn't you instead store the grammar tag in a separate attribute like:
[:node "2103738"; :tag "VP"; :parentNode "9073"; :children("98732987"
"342323241" ...)]

and then query it like:
[:node ?a; :tag "VP"; :children ?a]
?

Regards,
Chris

Received on Friday, 16 October 2009 15:28:04 UTC