Note that if we changed to a different link grammar dictionary (e.g.
one that was learned by unsupervised learning, hint hint)
> x1 utters verbally/says/phonates/speaks x2.
for each Lojban word.... So he is simply facing the small programming
task of translating these definitions into sets of English sentences,
i.e. in the above example
> Now I would like to extract individual sentences from this:
>
> x1 utters verbally x2
> x1 says x2
> x1 phonates x2
> x1 speaks x2
This could be done using a fairly simple script but he is wondering if
there's some elegant parsing framework that could be used to deal with
the forward-slashes between phrases... I guess ...
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/8e577a5c-e978-402a-8e90-161e522656a4%40googlegroups.com.
This is still very easy: modify the script to split on the x's, instead of splitting on whitespace, and only then split on the slashes.I assume the x's really are the letter x. If the x's are just some strings of random words, then the problem is not really solvable deterministically by any algorithm.--linas
On Fri, Nov 18, 2016 at 2:21 AM, Roman Treutlein <lordm...@gmail.com> wrote:
Maybe I should have given more examples. Because while your script might work for this example it won't work for this:x1 comes/goes to destination x2 from origin x3 via route x4 using means/vehicle x5.This would at least have the advantage of the alternatives consisting of only 1 word, but as in the first example and the following this is not always the case.x1 is a quantity of/is made of chalk from source x2 in form x3.But I probably will have to use a simple solution like the one you provided and then just fix everything it gets wrong by hand.
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.