[15:38:38] *** Joins: bruno` (~user@189.125.124.24) [15:39:21] *** Quits: bruno` (~user@189.125.124.24) (Quit: rcirc on GNU Emacs 25.2.2) [15:40:54] *** Joins: e3928a3bc (~user@189.125.124.24) [15:42:50] hello all [15:42:52] I'm trying to test a lin declaration, and was wondering if there is a way to generate a random tree in a top-level category (say, S) containing that declaration as a subtree [15:43:23] something like `> gr -cat=S (mkN "tree")` [15:43:39] giving `the tree is old` [15:43:52] is it possible in the GF shell? [15:45:17] I understand from the old logs that inariksit's repo does that (along with several other things) https://github.com/inariksit/GF-testing, but can it be done as a standalone thing? [16:52:59] e3928a3bc: no it cannot be done [16:53:04] that's why I'm doing this! ^^ [16:53:16] my program is much more usable these days, you should give it a try [16:53:43] the relevant command would be [16:53:58] gftest -l Eng -s S -f tree_N [16:54:13] also -g Lang.pgf or wherever you have your resource grammar [16:55:55] the actual output from this makes less sense semantically, but these two contexts should be all that is needed to check that all the strings in tree_N appear and seem legit [16:55:55] TestLang> UseCl (TTAnt TPres ASimul) PPos (PredVP (DetCN someSg_Det (UseN N_68)) UseCopula) [16:55:55] TestLangEng> some tree is [16:55:55] TestLang> AdvS (PrepNP without_Prep (DetCN somePl_Det (UseN N_68))) (UseCl (TTAnt TPres ASimul) PPos (ExistNP something_NP)) [16:55:56] TestLangEng> without some trees there is something [17:37:44] *** Joins: proteus-guy (~proteus-g@2405:9800:bc10:1ca:6de5:fea2:29a1:bd3b) [17:54:05] e3928a3bc: I can add a feature to test a whole subtree, now it's just one function, which means that testing e.g. CompNP chooses the "best" tree for you [17:54:39] but I can add an option "yes I want to test this whole subtree with CompNP (DetCN some_Det (UseN tree_N))" [17:54:45] now now though, going to a concert [18:19:46] *** Joins: inariksi1 (~inari@ksit.fixme.fi) [18:24:31] *** Quits: inariksit (~inari@ksit.fixme.fi) (*.net *.split) [18:27:55] *** inariksi1 is now known as inariksit [18:59:58] inariksit: I'll try your program! [19:00:09] have a nice concert :D [22:03:41] *** Quits: e3928a3bc (~user@189.125.124.24) (Ping timeout: 268 seconds) [22:46:10] *** Joins: e3928a3bc (~user@201.39.147.24) [22:46:26] hum, it seems I'll need PGF2 to do that, and I can't get it working (as per one of our old discussions in this channel)...