Differences in MOR output using macOS and Linux

11 views
Skip to first unread message

Leandro Garber

unread,
Dec 28, 2021, 11:47:16 AM12/28/21
to chibolts
Hi everyone,

We are processing some CHA files with MOR and we are finding differences between the same files processed on Linux and on MacOS.

Both using the latest version of MOR for english downloaded from https://talkbank.org/morgrams/

Some examples:
-------------------
*FA1:        well it ended up there in your pile

MacOS:
%mor:        co|well pro:per|it v|end-PAST prep|up n|there prep|in det:poss|your
        n|pile .
Linux:
%mor:        co|well pro:per|it v|end-PAST adv|up adv|there prep|in
        det:poss|your n|pile .
------------------------------
*MA1:        Morgan doesn't bite .

MacOS:
%mor:        n:prop|Morgan mod|do&3S~neg|not v|bite .
Linux:
%mor:        n:prop|Morgan mod|do&3S~neg|not n|bite .
-------------------------------

We are using CLAN from the UI in macOS and on Linux we are using:
mor +L/path/to/lib/eng [chaFilePath]
post +d/path/to/lib/eng/post.db [chaFilePath]
postmortem +L/path/to/lib/eng $1
megrasp +L/path/to/lib/eng $1

We found that on Linux post, postmortem and megrasp don't automatically run so we manually do it.

Am I missing something ? Shouldn't the output be the same ?

Thanks in advance,
Leandro.

Brian Macwhinney

unread,
Dec 28, 2021, 11:57:54 AM12/28/21
to ChiBolts
Dear Leandro,
It appears that on Linux, you are not running the PREPOST program, which is a step in the MOR-PREPOST-POST-POSTMORTEM-MEGRASP chain on Mac. For your two examples, I think that the Mac version is better. So, I would recommend either relying on that or else running PREPOST on Linux also.

— Brian MacWhinney
Teresa Heinz Professor of Cognitive Psychology,
Language Technologies and Modern Languages, CMU
> --
> You received this message because you are subscribed to the Google Groups "chibolts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/42301bf1-b37f-42bd-b142-14b0ab00555en%40googlegroups.com.

Leandro Garber

unread,
Dec 28, 2021, 12:34:01 PM12/28/21
to chib...@googlegroups.com
Dear Brian,

Thanks for your quick response. I can't find a "prepost" binary in my bin folder, is it named something different ?

Best Regards,
Leandro.


You received this message because you are subscribed to a topic in the Google Groups "chibolts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chibolts/7e0ZMlz-T5Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chibolts+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/67331DBC-DE32-4D1F-8DF8-50733431B0BD%40andrew.cmu.edu.

Leandro Garber

unread,
Dec 28, 2021, 12:57:26 PM12/28/21
to chib...@googlegroups.com
Dear Brian,

I'm reading the manual and now I understand there is no prepost binary.

I could find a prepost.cut file that I understand is a set of rules that should be run before POST. I'm trying to learn how to run these rules. Any help would be much appreciated.

Best regards,
Leandro.

Brian Macwhinney

unread,
Dec 28, 2021, 1:17:56 PM12/28/21
to ChiBolts
I guess Leonid didn’t include PREPOST in the Unix distribution. We are all on vacation this week and next. Any chance you could rely on Mac OS instead?

— Brian
> To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/CANsQED9kQV-p4nVJz4L%2BPjbkj6%2BT45-8waKj9%2BNsSzx935krvw%40mail.gmail.com.

Leonid Spektor

unread,
Dec 28, 2021, 1:21:42 PM12/28/21
to chib...@googlegroups.com
Apparently there is a bug in Unix MOR code that fails to read pre-post rules file. I am working on this right now and I will let everyone know when it is fixed.


Leonid.
> To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/02A45247-056C-4B66-9003-9C487C4468C4%40andrew.cmu.edu.

Leandro Garber

unread,
Dec 28, 2021, 1:39:36 PM12/28/21
to chib...@googlegroups.com
Thanks Brian and Leonid for your time, I hope I didn't spoil your holidays !

Best,
Leandro.


Leonid Spektor

unread,
Dec 28, 2021, 1:47:05 PM12/28/21
to chib...@googlegroups.com
The Unix bug has been fixed. New UNIX code is on the web.


Leonid.

Leandro Garber

unread,
Dec 28, 2021, 2:29:28 PM12/28/21
to chib...@googlegroups.com
That was fast.

I've just downloaded it, compiled it, and yes, it works like a charm. Files are identical now.

Thanks for your help and happy new year.


Reply all
Reply to author
Forward
0 new messages