[Corpora-List] Charniak parser

Leon Derczynski leon at dcs.shef.ac.uk
Tue Jun 22 18:38:25 UTC 2010


Hi,

Problem solved - using gcc/g++ 3.3 (and associated stdlib), the parser compiles.

All the best,


Leon

-------- Original Message --------
Subject: Re: [Corpora-List] Charniak parser
Date: Tue, 22 Jun 2010 20:15:27 +0200
From: Roman Klinger <roman.klinger at scai.fraunhofer.de>
To: Leon Derczynski <L.Derczynski at dcs.shef.ac.uk>
References: <4C20FD0B.60206 at dcs.shef.ac.uk>

Hi,

On 06/22/2010 08:12 PM, Leon Derczynski wrote:
> Thank you for your answer! I've replied directly as I'm not sure the list is the right place to
> discuss compilation issues, I may be wrong.

Perhaps not in detail, but others may be interested. We can post the
solution if we get one.

Which GCC version are you using? I used 3.3. Got similar errors with 4.*.

I am not a C expert, therefore I am not sure if this is your problem,
but give it a try :-).

Best,
  Roman



>
> I am also using this version (from http://bllip.cs.brown.edu/download/reranking-parserAug06.tar.gz);
> my C++ skill ranks between very low and zero. I've had problems with declarations likely just
> missing from my path, which I can fix, and manifest as:
>
> BchartSm.C: In member function ‘double Bchart::pHypgt(const std::string&, int)’:
> BchartSm.C:554: error: ‘strpbrk’ was not declared in this scope
> make[1]: *** [BchartSm.o] Error 1
> make[1]: Leaving directory `/home/leon/charniak/reranking-parser/first-stage/PARSE'
>
> However, after adding include lines for stdlib.h and string.h to BchartSm.C, I am stumped by:
>
> BchartSm.C: In member function ‘double Bchart::pHypgt(const std::string&, int)’:
> BchartSm.C:555: error: invalid conversion from ‘const char*’ to ‘char*’
> make[1]: *** [BchartSm.o] Error 1
>
> It really seems as though I have some other misconfiguration, if you have compiled the same code
> without issues. If you have any clue as to what it may be, I would be extremely grateful to hear it.
>
> All the best,
>
>
> Leon
>
> ----------
>
> Hi Leon,
> On 06/22/2010 07:26 PM, Leon Derczynski wrote:
>   >  I am looking for a working version of the Charniak parser.
>
> You mean the reranking parser published on http://bllip.cs.brown.edu/resources.shtml right?
>
>
>   >  I have scoured a few sites, tried and
>   >  failed to build a few versions from the web and applied various patches, without much success.
> [...]
>
>
>   >  Can anybody help?
>
> I am using this parser, without any problems. Therefore, it is difficult to guess, what your problem
> is. Compilation worked without any issues.
>
> Could you specify what does not work for you?
>
> Best,
>
> Roman


-- 
Roman Klinger
Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI)
Department of Bioinformatics
Schloss Birlinghoven
D-53754 Sankt Augustin
Tel.: +49-2241-14-2360
Fax.: +49-2241-14-4-2360
email: roman.klinger at scai.fhg.de
http://www.scai.fraunhofer.de/klinger.html

_______________________________________________
Corpora mailing list
Corpora at uib.no
http://mailman.uib.no/listinfo/corpora


More information about the Corpora mailing list