Differences in morphological analysis between Haskell/C runtimes
johnjcamilleri opened this issue · 4 comments
johnjcamilleri commented
Haskell shell:
$ gf ../contrib/foods/Foods.pgf
...
Languages: FoodsEng
Foods> ma -lang=Eng "is"
is
Pred : s
0 msec
C shell:
$ gf -cshell ../contrib/foods/Foods.pgf
...
Languages: FoodsEng
Foods> ma -lang=Eng "is"
0 msec
krangelov commented
The difference is on purpose. The C runtime finds words belonging to the
lexicon but not syntagmatic words.
…On Fri, 30 Apr 2021 at 14:49, John J. Camilleri ***@***.***> wrote:
Assigned #104 <#104>
to @krangelov <https://github.com/krangelov>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYFSZHKY5AFNPDU6GIRPXLTLKRL5ANCNFSM434EWMBA>
.
johnjcamilleri commented
Ok. Could this be turned into an optional flag?
In general, there is a lack of documentation about such things. It's great that you can always answer, but not a good use of your time. Do you think the runtime-api.html
document is still the best place for these things? It seems a little outdated...
krangelov commented
Unfortunately it cannot be made optional. Searching for syntagmatic words
can only work in a very different way. The Haskell runtime for instance
does it at the cost of doubling the memory consumption. It can be better
than that but at the time I still felt that searching only in the lexicon
is better. There are of course also scenarios where you want to search for
syntagmatic words. I for instance encountered the need when I worked on a
part of speech tagger.
runtime-api.html is still up to date as far as I know.
…On Mon, 3 May 2021 at 11:26, John J. Camilleri ***@***.***> wrote:
Ok. Could this be turned into an optional flag?
In general, there is a lack of documentation about such things. It's great
that you can always answer, but not a good use of your time. Do you think
the runtime-api.html document is still the best place for these things?
It seems a little outdated...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYFSZGXBQG5K56L46QWNLTTLZT6FANCNFSM434EWMBA>
.
johnjcamilleri commented
Fair enough, thanks for the explanation.
Actually by "outdated" I meant "hasn't been updated in a while", but if it's still accurate then that's great. Perhaps I'll update it with a section of differences between the Haskell and C runtimes, such as this. Another obvious one is the handling of predef tokens (SOFT_BIND etc).