[00:00:28] *** Quits: jmvanel (~jmvanel@76.57.127.78.rev.sfr.net) (Ping timeout: 240 seconds) [10:36:10] *** Joins: atoll (~atoll@crossing1.epfl.ch) [10:36:14] Hi [10:37:13] How can handle the case where a String can be a group of word and not the first token ? [10:45:33] *** Joins: jmvanel (~jmvanel@76.57.127.78.rev.sfr.net) [10:52:42] hi atoll, can you be more specific? One usually just uses the double quotes: "this is my group of words" [10:53:07] is the same as "this" ++ "is" ++ "my" ..... [11:01:04] *** Quits: atoll (~atoll@crossing1.epfl.ch) (Quit: WeeChat 0.4.1) [11:01:26] *** Joins: atoll (~atoll@crossing1.epfl.ch) [11:01:32] Hello jstar [11:02:12] jstar: in the exemple where you want to extract X from a sentence, by exemple "My name is X" [11:06:36] *** Quits: atoll (~atoll@crossing1.epfl.ch) (Ping timeout: 246 seconds) [11:07:06] *** Joins: atoll (~atoll@crossing1.epfl.ch) [11:07:24] jstar: my connection isn't very stable :d [11:10:07] you should look at the letter example [11:10:08] http://www.grammaticalframework.org/examples/letter/ [11:10:23] Specifically the NameHe function [11:10:39] which takes a String as input [11:11:57] Does it take any length of name as a variable ? [11:12:07] because I don't see any difference with what i did [11:13:33] do you want an entire token list to be treated as the input variable? [11:13:39] yes [11:13:49] I don't think that is possible [11:14:12] :< [11:14:37] you should post a question on the GF mailing list, perhaps someone has a better answer, or at least a workaround for yu [11:14:38] Is there any character to manually define limit of a token ? [11:15:22] not really; to do that you will need to get into writing a custom lexer [11:15:42] It seems odd that i'm the first one to have that kind of need :d [11:16:02] you're not, but this has never been solved elegantly [11:16:13] the general solution is that you lex in a previous step [11:16:25] and then your GF grammar recognises the delimitation chars [11:16:47] ie you need some custom script which adds the del chars before passing into GF [11:19:54] Seems complicated [11:20:36] I've sent my question in the user group [11:25:39] yes, the lexing issue is one of the weaknesses of GF I think [11:25:45] it's not as flexible as one would like [11:26:08] I keep meaning to attempt solving it but other things always come up [11:26:42] Maybe it's a stupid input but isn't it possible to define a list in gf ? [11:28:14] How do you handle the case where you want to add as many adjective in you want in "He is X, Y, Z" ? [11:28:23] and Z* [11:29:03] those are handled by list categories [11:29:22] you might want to try that for your issue [11:29:36] but I'm not sure how it will behave with only a space as a delimeter [11:31:26] It will create ambiguous parsing [11:32:04] absolutely, but sometimes that's acceptable [11:32:07] because the next token could also be input even if it's not [11:32:10] Is there any priority ? [11:33:16] I'm not sure how you would specify priority on that level [11:38:04] How does gf behave in ambiguous situations ? [11:39:27] it will return all possible parse trees [11:39:37] there are ways to write the grammar which encode the precedence [11:40:02] but what you are talking about is mixing precedence of actual rules and arbitrary input strings [12:18:14] Type dependent doesn't seem to work [12:18:43] It lack the definition of DKindOne in the tutorial and concrete syntax so i cannot rerun exactly the tutorial [12:18:52] when i define it myself gr doesn't find any tree [12:20:35] jstar: http://paste.isomorphis.me/Q35 here is my current try [12:21:25] parse "read the age in the database" return: The parser failed at token "read" [12:21:35] gr returns no trees found [12:21:57] I've tried many things but i think i will give up :< [12:28:56] the tutorials was written 6 years ago, maybe it doesn't work anymore ? [12:30:46] *** Quits: atoll (~atoll@crossing1.epfl.ch) (Read error: Connection reset by peer) [12:31:09] *** Joins: atoll (~atoll@crossing1.epfl.ch) [12:32:27] let me have a look [12:33:30] ty [12:49:53] honest I cannot tell what is wrong with your grammar [12:49:59] *honestly [12:50:28] :< [12:50:36] What am i supposed to do ? :d [12:50:41] again, I would suggest posting to the mailing list with this example [12:51:12] The problem is i'm an intern and i just cannots sit all day just waiting for a miracle :D [12:51:16] -s [12:51:47] You're very kind but if you're the only one that can help it's gonna be difficult. [12:52:15] well I am the only one on the IRC channel, but many other people follow the mailing list [12:52:30] there's a good chance you will get a good answer within a day or two [12:52:49] *** Quits: atoll (~atoll@crossing1.epfl.ch) (Quit: WeeChat 0.4.1) [12:53:22] but as with all open-source projects, support is voluntary by the community so I cannot give any guarantees [12:56:38] *** Joins: atoll (~atoll@crossing1.epfl.ch) [12:56:40] hold on, found the problem [12:56:56] you need to have linearistions for endpoint, standard [12:57:02] even though they are ignored [12:57:49] https://gist.github.com/johnjcamilleri/6007397 [13:13:12] *** Quits: atoll (~atoll@crossing1.epfl.ch) (Ping timeout: 252 seconds) [14:29:59] *** Joins: atoll (~atoll@crossing1.epfl.ch) [14:29:59] *** Quits: atoll (~atoll@crossing1.epfl.ch) (Client Quit) [14:30:19] *** Joins: atoll (~atoll@crossing1.epfl.ch) [14:30:51] I was out for lunch [14:30:56] thanx you very much jstar [14:30:59] it works [14:36:25] yw :) [16:07:20] Evern seen that error when using jpgf ? : Incorrect literal tag 24 [16:07:51] jstar: the framework is cool as hell :D [16:11:04] glad you think so! Unfortunately I have no experience with JPGF [16:12:08] I used gfo file and not pgf file [16:12:11] my bad [16:50:39] *** Quits: atoll (~atoll@crossing1.epfl.ch) (Ping timeout: 246 seconds) [16:53:01] *** Quits: jmvanel (~jmvanel@76.57.127.78.rev.sfr.net) (Quit: Quitte) [18:57:19] *** Joins: atoll (~atoll@crossing1.epfl.ch) [19:08:26] *** Quits: atoll (~atoll@crossing1.epfl.ch) (Ping timeout: 240 seconds) [19:27:31] *** Joins: jmvanel (~jmvanel@76.57.127.78.rev.sfr.net) [20:11:24] *** Quits: jmvanel (~jmvanel@76.57.127.78.rev.sfr.net) (Ping timeout: 276 seconds) [20:46:13] *** Joins: jmvanel (~jmvanel@76.57.127.78.rev.sfr.net) [22:59:28] *** Joins: atoll (~atoll@194-29-25-170.static.cablecom.ch) [23:07:48] *** Quits: atoll (~atoll@194-29-25-170.static.cablecom.ch) (Ping timeout: 256 seconds)