how to guide to use bison for nlp

2019-04-30 Thread r0ller
Hi All, If anyone is interested, as part of my project I wrote an initial how to guide describing how bison can be used for nlp (including machine learning). The project is more about connecting dots so many other tools need to be installed ('make help' will tell how many) and I'm just trying t

Re: bison for nlp

2018-11-27 Thread r0ller
Hi Akim, Ok, thanks anyway:) Best regards, r0ller   Eredeti levél Feladó: Akim Demaille < a...@lrde.epita.fr (Link -> mailto:a...@lrde.epita.fr) > Dátum: 2018 november 27 20:32:24 Tárgy: Re: bison for nlp Címzett: r0ller < r0l...@freemail.hu (Link -> mailto:r0l

Re: bison for nlp

2018-11-27 Thread Akim Demaille
> Le 27 nov. 2018 à 16:49, r0ller a écrit : > > Hi Akim, > > Thanks for everything again. One thing came into my mind concerning your > question if there's any feature of bison I miss (though this may not belong > to the scope of bison but another tool): a kind of reverse mode would be > gr

Re: bison for nlp

2018-11-27 Thread r0ller
..@lrde.epita.fr) > Dátum: 2018 november 23 19:13:10 Tárgy: Re: bison for nlp Címzett: r0ller < r0l...@freemail.hu (Link -> mailto:r0l...@freemail.hu) >   Hi r0ller, > Le 21 nov. 2018 à 11:07, r0ller a écrit : > > Hi Akim, > > Thanks again! After your answer I felt

Re: bison for nlp

2018-11-23 Thread Akim Demaille
Hi r0ller, > Le 21 nov. 2018 à 11:07, r0ller a écrit : > > Hi Akim, > > Thanks again! After your answer I felt pretty dumb as I had to realize that > the problems I mentioned came most probably due to my carelessness. :) No worries. > This is actually one thing that could be pointed out in

Re: bison for nlp

2018-11-21 Thread r0ller
offline via voice control having a bison parser running under the hood:) Best regards, r0ller   Eredeti levél Feladó: Akim Demaille < a...@lrde.epita.fr (Link -> mailto:a...@lrde.epita.fr) > Dátum: 2018 november 20 20:19:50 Tárgy: Re: bison for nlp Címzett: r0ller < r0l

Re: bison for nlp

2018-11-20 Thread Akim Demaille
Hi! > Le 19 nov. 2018 à 16:09, r0ller a écrit : > > Hi Akim, > > I managed to take the first step and get it running but it wasn’t as easy as > I thought. Sorry about that :( > First, I wanted to take the approach that the 'Simple C++ Example' > demonstrates in the bison manual. However, I

Re: bison for nlp

2018-11-19 Thread r0ller
a C parser but I manually modified and played around with it till I got it working. Thanks for any hints! Best regards, r0ller Eredeti levél Feladó: r0ller < r0l...@freemail.hu (Link -> mailto:r0l...@freemail.hu) > Dátum: 2018 november 12 11:43:47 Tárgy: Re: bison f

Re: bison for nlp

2018-11-12 Thread r0ller
to turn mine into a c++ parser:) Best regards, r0ller Eredeti levél Feladó: Akim Demaille < a...@lrde.epita.fr (Link -> mailto:a...@lrde.epita.fr) > Dátum: 2018 november 9 06:13:29 Tárgy: Re: bison for nlp Címzett: r0ller < r0l...@freemail.hu (Link -> mailto:r0l...@freema

Re: improving error message (was: bison for nlp)

2018-11-10 Thread Akim Demaille
> Le 10 nov. 2018 à 10:38, Hans Åberg a écrit : > >> Also, see if using %param does not already >> give you what you need to pass information from the scanner to the >> parser’s yyerror. > > How would that get into the yyerror function? In C, arguments of %parse-param are passed to yyerror.

Re: improving error message (was: bison for nlp)

2018-11-10 Thread Hans Åberg
> On 10 Nov 2018, at 09:02, Akim Demaille wrote: > > Hi Hans, Hello Akim, > Yes. Some day we will work on improving error message generation, > there is much demand. One thing I’d like to have is if there is an error with say a identifier, also writing the out the nam

improving error message (was: bison for nlp)

2018-11-10 Thread Akim Demaille
Hi Hans, > Le 9 nov. 2018 à 14:45, Hans Åberg a écrit : > >> On 9 Nov 2018, at 12:11, Akim Demaille wrote: >> >>> Le 9 nov. 2018 à 09:58, Hans Åberg a écrit : >>> >>> On 9 Nov 2018, at 05:59, Akim Demaille wrote: > By the way, I’ll still get the error message as a string I g

Re: bison for nlp

2018-11-09 Thread Hans Åberg
> On 9 Nov 2018, at 12:11, Akim Demaille wrote: > >> Le 9 nov. 2018 à 09:58, Hans Åberg a écrit : >> >> >>> On 9 Nov 2018, at 05:59, Akim Demaille wrote: >>> By the way, I’ll still get the error message as a string I guess, right? >>> >>> Yes. Some day we will work on improving error

Re: bison for nlp

2018-11-09 Thread Akim Demaille
> Le 9 nov. 2018 à 09:58, Hans Åberg a écrit : > > >> On 9 Nov 2018, at 05:59, Akim Demaille wrote: >> >>> By the way, I’ll still get the error message as a string I guess, right? >> >> Yes. Some day we will work on improving error message generation, >> there is much demand. > > One thin

Re: bison for nlp

2018-11-09 Thread Hans Åberg
> On 9 Nov 2018, at 05:59, Akim Demaille wrote: > >> By the way, I’ll still get the error message as a string I guess, right? > > Yes. Some day we will work on improving error message generation, > there is much demand. One thing I'd like to have is if there is an error with say a identifier,

Re: bison for nlp

2018-11-08 Thread Akim Demaille
Hi! > Le 7 nov. 2018 à 10:09, r0ller a écrit : > > Hi Akim, > > The file hi_nongen.y is just left there as the last version that I wrote > manually:) If you check out any other hi.y files in the platform specific > directories (e.g. the one for the online demo is > https://github.com/r0ller/

Re: bison for nlp

2018-11-08 Thread Akim Demaille
> Le 8 nov. 2018 à 22:35, r0ller a écrit : > > Hi Hans, > > Wow, I did not know that feature. Is such a string only used when creating > an error message? It also becomes an alias in the grammar file itself. For instance with %token PLUS "+" in addition to exp: exp PLUS exp you can als

Re: bison for nlp

2018-11-08 Thread r0ller
as a string I guess, right? Best regards, r0ller Eredeti levél Feladó: Hans Åberg < haber...@telia.com (Link -> mailto:haber...@telia.com) > Dátum: 2018 november 8 21:25:03 Tárgy: Re: bison for nlp Címzett: r0ller < r0l...@freemail.hu (Link -> mailto:r0l...@freemai

Re: bison for nlp

2018-11-08 Thread Hans Åberg
rb", and you can also use it in the grammar instead of t_ENG_Adv. > Eredeti levél > Feladó: Hans Åberg < haber...@telia.com (Link -> mailto:haber...@telia.com) > > Dátum: 2018 november 8 14:28:03 > Tárgy: Re: bison for nlp > Címzett: r0ller < r0l..

Re: bison for nlp

2018-11-08 Thread r0ller
Hi Hans, Sorry, I don't really get it:( What do you mean by replacing tokens by strings? How can that be done? Best regards, r0ller Eredeti levél Feladó: Hans Åberg < haber...@telia.com (Link -> mailto:haber...@telia.com) > Dátum: 2018 november 8 14:28:03 Tárgy:

Re: bison for nlp

2018-11-08 Thread Hans Åberg
> On 7 Nov 2018, at 10:09, r0ller wrote: > > Numbering tokens was introduced in the very beginning and has been questioned > by myself quite a many times if it's still needed. I didn't give a hard try > to get rid of it mainly due to one reason: I want to have an error handling > that tells i

Re: bison for nlp

2018-11-07 Thread r0ller
de.epita.fr) > Dátum: 2018 november 7 07:30:29 Tárgy: Re: bison for nlp Címzett: r0ller < r0l...@freemail.hu (Link -> mailto:r0l...@freemail.hu) >   Hi! > Le 6 nov. 2018 à 17:32, r0ller a écrit : > > To whoever it may concern, > > I’m using bison to create an open source

Re: bison for nlp

2018-11-06 Thread Akim Demaille
Hi! > Le 6 nov. 2018 à 17:32, r0ller a écrit : > > To whoever it may concern, > > I’m using bison to create an open source nlp tool and it's kind of useable > already (see online demo at https://r0ller.github.io/alice). Wow! That’s impressive. > The bison source itself is generated from the

bison for nlp

2018-11-06 Thread r0ller
To whoever it may concern, I'm using bison to create an open source nlp tool and it's kind of useable already (see online demo at https://r0ller.github.io/alice). The bison source itself is generated from the grammar rules (which can at most be binary branching) that are stored in an sqlite db