On 23 May 2018 at 10:31, Jaume OrtolĂ i Font <jaumeort...@gmail.com> wrote:
> On the other hand, I have some questions about Constraint Grammar syntax.
> I am not able to fully understand the manual. A few examples will be very
> useful for me. With (*/* "ver") we can match a lemma anywhere in the
> sentence. What is the syntax for...
>
> - matching something in 4 tokens around a word (that is to say, positions
> -4, -3, -2 -1, 1, 2, 3, 4)?
> - matching something in 4 tokens at the left or at the right of a word?
>
You almost certainly don't want such rigid limits, and it's not how CG
thinking ever goes.
What you probably want is nearest neighbor 0* search, with a suitable
Barrier to make sure it doesn't search too far. Similarly with going only
left or right: 1* and -1* with a Barrier.
Also, (*/* "ver") doesn't make sense as-is, so I hope that's not a real
example. If anything, it should be (0*/* ("ver")).
-- Tino Didriksen
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff