4646#TINY
4747
4848The command has one argument which is either function, expression or
49- a category defined in the abstract syntax of the current grammar.
49+ a category defined in the abstract syntax of the current grammar.
5050If the argument is a function then ?its type is printed out.
5151If it is a category then the category definition is printed.
5252If a whole expression is given it prints the expression with refined
@@ -303,7 +303,7 @@ but the resulting .gf file must be imported separately.
303303
304304#TINY
305305
306- Generates a list of random trees, by default one tree.
306+ Generates a list of random trees, by default one tree up to depth 5 .
307307If a tree argument is given, the command completes the Tree with values to
308308all metavariables in the tree. The generation can be biased by probabilities,
309309given in a file in the -probs flag.
@@ -315,13 +315,14 @@ given in a file in the -probs flag.
315315 | ``-cat`` | generation category
316316 | ``-lang`` | uses only functions that have linearizations in all these languages
317317 | ``-number`` | number of trees generated
318- | ``-depth`` | the maximum generation depth
318+ | ``-depth`` | the maximum generation depth (default: 5)
319319 | ``-probs`` | file with biased probabilities (format 'f 0.4' one by line)
320320
321321- Examples:
322322
323323 | ``gr`` | one tree in the startcat of the current grammar
324324 | ``gr -cat=NP -number=16`` | 16 trees in the category NP
325+ | ``gr -cat=NP -depth=2`` | one tree in the category NP, up to depth 2
325326 | ``gr -lang=LangHin,LangTha -cat=Cl`` | Cl, both in LangHin and LangTha
326327 | ``gr -probs=FILE`` | generate with bias
327328 | ``gr (AdjCN ? (UseN ?))`` | generate trees of form (AdjCN ? (UseN ?))
@@ -338,8 +339,8 @@ given in a file in the -probs flag.
338339
339340#TINY
340341
341- Generates all trees of a given category. By default,
342- the depth is limited to 4 , but this can be changed by a flag.
342+ Generates all trees of a given category. By default,
343+ the depth is limited to 5 , but this can be changed by a flag.
343344If a Tree argument is given, the command completes the Tree with values
344345to all metavariables in the tree.
345346
@@ -353,7 +354,7 @@ to all metavariables in the tree.
353354
354355- Examples:
355356
356- | ``gt`` | all trees in the startcat, to depth 4
357+ | ``gt`` | all trees in the startcat, to depth 5
357358 | ``gt -cat=NP -number=16`` | 16 trees in the category NP
358359 | ``gt -cat=NP -depth=2`` | trees in the category NP to depth 2
359360 | ``gt (AdjCN ? (UseN ?))`` | trees of form (AdjCN ? (UseN ?))
@@ -582,7 +583,7 @@ trees where a function node is a metavariable.
582583
583584- Examples:
584585
585- | ``l -lang=LangSwe,LangNor -chunks ? a b (? c d)`` |
586+ | ``l -lang=LangSwe,LangNor -chunks ? a b (? c d)`` |
586587
587588
588589#NORMAL
@@ -647,7 +648,7 @@ The -lang flag can be used to restrict this to fewer languages.
647648The default start category can be overridden by the -cat flag.
648649See also the ps command for lexing and character encoding.
649650
650- The -openclass flag is experimental and allows some robustness in
651+ The -openclass flag is experimental and allows some robustness in
651652the parser. For example if -openclass="A,N,V" is given, the parser
652653will accept unknown adjectives, nouns and verbs with the resource grammar.
653654
0 commit comments