Changing ordering on phrase level

11 views
Skip to first unread message

bjs...@gmail.com

unread,
Feb 21, 2019, 8:43:34 AM2/21/19
to Constraint Grammar


Hi
I'm investigating CG3 for purpose of testing it for use in grammar checking. Then some fundamental questions arise:

From what I understand it is possible to build simple tree structures, like defining a nominal phrase. Correct?

If so, is it then possible to change the ordering on phrase level, like "You should immediatly read the most reliable newspaper in town" to
"The most reliable newspaper in town you should read immediatly."

I need to make general rules that can switch the ordering of whole phrases and not just word for word.

Thanks for any comment.

Bjørn Seljebotn

Tino Didriksen

unread,
Feb 21, 2019, 8:53:39 AM2/21/19
to Constraint Grammar
Yes, if you have a dependency tree grouping the noun phrase you can use Move WithChild https://visl.sdu.dk/cg3/chunked/rules.html#move-switch to move the whole sub-tree to another position.

As for using CG to make grammar checkers in general, you should take a look at https://github.com/divvun/libdivvun and http://visl.sdu.dk/~eckhard/pdf/ranlp2015_proofing.pdf

-- Tino Didriksen
Reply all
Reply to author
Forward
0 new messages