link-grammar: Error: Regex name HMS-TIME not found in dictionary!

43 views
Skip to first unread message

Erling Wegger Linde

unread,
May 16, 2011, 7:34:04 PM5/16/11
to link-grammar
Hi,

I'm trying to install and use link-grammar on Ubuntu 11..

This is what I get:

link-grammar: Error: Regex name HMS-TIME not found in dictionary!
link-grammar: Error: Regex name DECADE-TIME not found in dictionary!
link-grammar: Error: Regex name DAY-ORDINALS not found in dictionary!
link-grammar: Error: Regex name ORDINALS not found in dictionary!
link-grammar: Error: Regex name NUMBERS not found in dictionary!
link-grammar: Error: Regex name NUMBERS not found in dictionary!
link-grammar: Error: Regex name FRACTION not found in dictionary!

It is a completely fresh install of Ubuntu and my locale settings are
as follows:

LANG=en_US.UTF8
LANGUAGE=
LC_CTYPE="en_US.UTF8"
LC_NUMERIC="en_US.UTF8"
LC_TIME="en_US.UTF8"
LC_COLLATE="en_US.UTF8"
LC_MONETARY="en_US.UTF8"
LC_MESSAGES="en_US.UTF8"
LC_PAPER="en_US.UTF8"
LC_NAME="en_US.UTF8"
LC_ADDRESS="en_US.UTF8"
LC_TELEPHONE="en_US.UTF8"
LC_MEASUREMENT="en_US.UTF8"
LC_IDENTIFICATION="en_US.UTF8"
LC_ALL=

Any help would be greatly appreciated :)

Linas Vepstas

unread,
May 17, 2011, 3:15:47 PM5/17/11
to link-g...@googlegroups.com
On 16 May 2011 18:34, Erling Wegger Linde <erli...@gmail.com> wrote:
> Hi,
>
> I'm trying to install and use link-grammar on Ubuntu 11.

How did you configure & install?

> This is what I get:
>
> link-grammar: Error: Regex name HMS-TIME not found in dictionary!

These are in the file en/4.0.regex which should have been installed in the
same place as 4.0.dict, 4.0.affix etc.

I am guessing that you are using a newer version of the link-grammar binary,
but also have an older version installed, probably from Ubuntu, and the
newer binary is looking in the location where the older data files are stored.

The solution is to remove the older version (and its data files) (and then,
probably to reinstall the new version, just in case).

--linas

Erling Wegger Linde

unread,
May 17, 2011, 5:55:44 PM5/17/11
to link-g...@googlegroups.com
Hi,

Thank you for your reply.


(./configure, make & make install).

I've also tried to install it via apt-get, but then I am unable to install the Linkparser ruby gem (http://deveiate.org/projects/Ruby-LinkParser). Because it doesn't set up pkg-config properly it seems.

I've tried quite a few combinations of different versions, removing and reinstalling. I've tried with different versions of Ubuntu (10 and 11). It works fine on my Mac, but I struggle to get it working on Ubuntu.

Any more ideas on how to debug?

Thanks,
Erling


--
You received this message because you are subscribed to the Google Groups "link-grammar" group.
To post to this group, send email to link-g...@googlegroups.com.
To unsubscribe from this group, send email to link-grammar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/link-grammar?hl=en.


Erling Wegger Linde

unread,
May 17, 2011, 6:20:47 PM5/17/11
to link-g...@googlegroups.com
Some more information:

link-grammar: Info: Dictionary found at /usr/local/share/link-grammar/en/4.0.dict

I then manually to point to the latest dictionary data: /usr/local/share/link-grammar -> /home/ubuntu/link-grammar-4.7.4/data/

Still get the same errors..

Erling Wegger Linde

unread,
May 17, 2011, 6:35:10 PM5/17/11
to link-g...@googlegroups.com
I finally solved it. It was Apache that was not using the system / default locale. It all makes sense now :)

Linas Vepstas

unread,
May 18, 2011, 11:27:22 AM5/18/11
to link-g...@googlegroups.com
On 17 May 2011 17:35, Erling Wegger Linde <erli...@gmail.com> wrote:
> I finally solved it. It was Apache that was not using the system / default
> locale. It all makes sense now :)

Glad to hear that :-) Now, I can't imagine what apache has got to do
with it ...

--linas

Erling Wegger Linde

unread,
May 18, 2011, 12:39:17 PM5/18/11
to link-g...@googlegroups.com
I was running my application behind/with Apache/Passenger. When I realised I could test link-grammar from the command line and it was all fine it was easy to find the problem.. :)


--linas

Linas Vepstas

unread,
May 18, 2011, 1:45:31 PM5/18/11
to link-g...@googlegroups.com
On 18 May 2011 11:39, Erling Wegger Linde <erli...@gmail.com> wrote:
> I was running my application behind/with Apache/Passenger.

Well, this begs the question: what web app uses link-grammar?

-- linas

Erling Wegger Linde

unread,
May 19, 2011, 4:18:17 AM5/19/11
to link-g...@googlegroups.com
Hehe, it's just a pet project. I'll send you a link if it goes live and if I can get it to work properly :)

Reply all
Reply to author
Forward
0 new messages