Hi Jeremy,

On Thu, Jun 16, 2016 at 3:39 AM, Jeremy Bicha <[email protected]> wrote:

>  I get this build error:
>
> Making all in linkgrammarwrap
>

I just glanced at the sources for that, It looks slightly archaic, hasn't
been touched in a while, but from what I can tell, it should work if you
just stub out the panic_parse option.


> LinkGrammarWrap.cpp: In member function ‘bool
> LinkGrammarWrap::parseSentence(PieceOfText*)’:
> LinkGrammarWrap.cpp:92:44: error: ‘parse_options_set_panic_mode’ was not
> declared in this scope
>    parse_options_set_panic_mode(m_Opts, TRUE);
>

In the short-run, just remove that line; that should cure the problem.  In
the long run, the whole file should probably have to be combed over and
modernized.  It looks mostly OK to me, but I can't necessarily see if there
is some deeper bug in there.  If you contact the mailing list, and ask
nicely, I suspect that Amir might actually enjoy doing this.


> It looks like
>
> https://github.com/opencog/link-grammar/commit/04eebb49714876c65128d03cd528d2c4259887d8
> is to blame. That was included in link-grammar 5.1.0. Both Fedora and
> openSUSE still package the version before that (5.0.8) (and maybe this is
> why?).
>

No one has ever popped up and mentioned this before!  Yes, clearly, it
would be a show-stopper.

>
> I have to admit I don't really know much about link-grammar except I'm
> trying to help out and package the update. If you could help fix the
> Abiword build, I'd sure appreciate it.
>
> By the way, I sent you an email earlier asking if the Abiword grammar
> plugin supports languages besides English but I didn't get a reply.
>

Sorry, I'm drowning in email.  I know nothing at all about Abiword ...
Looking at the code:

http://svn.abisource.com/abiword/branches/ABI-2-8-0-STABLE/plugins/grammar/linkgrammarwrap/LinkGrammarWrap.cpp

I can see there is a hard-coded "en" for English.  That would have to be
generalized.

The only other "ready for general use" language would be Russian, that
should work just fine out of the box.

After a large amount of fiddling with the morphology analyzer, someone
might be able to get Persian (Farsi) to work.

None of the other langauges (turkish, lithuanian, german, arabic, etc) have
enough coverage to be usable.  That may change by next year.  Maybe.

--linas

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1406051

Title:
  link-grammar pacakge is out-of-date

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/link-grammar/+bug/1406051/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to