1
0
forked from GitHub/gf-core

"Committed_by_peb"

This commit is contained in:
peb
2005-07-01 16:14:26 +00:00
parent 0f166ad248
commit a386af8bdc
2 changed files with 35 additions and 19 deletions

View File

@@ -5,9 +5,9 @@
-- Stability : (stable) -- Stability : (stable)
-- Portability : (portable) -- Portability : (portable)
-- --
-- > CVS $Date: 2005/07/01 08:16:32 $ -- > CVS $Date: 2005/07/01 17:14:26 $
-- > CVS $Author: aarne $ -- > CVS $Author: peb $
-- > CVS $Revision: 1.7 $ -- > CVS $Revision: 1.8 $
-- --
-- Help on shell commands. Generated from HelpFile by 'make help'. -- Help on shell commands. Generated from HelpFile by 'make help'.
-- PLEASE DON'T EDIT THIS FILE. -- PLEASE DON'T EDIT THIS FILE.
@@ -172,22 +172,27 @@ txtHelpFile =
"\n Shows all Trees returned for String by the actual" ++ "\n Shows all Trees returned for String by the actual" ++
"\n grammar (overridden by the -lang flag), in the category S (overridden" ++ "\n grammar (overridden by the -lang flag), in the category S (overridden" ++
"\n by the -cat flag)." ++ "\n by the -cat flag)." ++
"\n options:" ++ "\n options for batch input:" ++
"\n -lines parse each line of input separately, ignoring empty lines" ++
"\n -all as -lines, but also parse empty lines" ++
"\n options for selecting parsing method:" ++
"\n (default)parse using an overgenerating CFG" ++
"\n -cfg parse using a much less overgenerating CFG" ++
"\n -mcfg parse using an even less overgenerating MCFG" ++
"\n Note: the first time parsing with -cfg or -mcfg might take a long time" ++
"\n options that only work for the default parsing method:" ++
"\n -n non-strict: tolerates morphological errors" ++ "\n -n non-strict: tolerates morphological errors" ++
"\n -ign ignore unknown words when parsing" ++ "\n -ign ignore unknown words when parsing" ++
"\n -raw return context-free terms in raw form" ++ "\n -raw return context-free terms in raw form" ++
"\n -v verbose: give more information if parsing fails" ++ "\n -v verbose: give more information if parsing fails" ++
"\n -new use an experimental method (GF 2.0; sometimes very good)" ++
"\n -lines parse each line of input separately, ignoring empty lines" ++
"\n -all as -lines, but also parse empty lines" ++
"\n flags:" ++ "\n flags:" ++
"\n -cat parse in this category" ++ "\n -cat parse in this category" ++
"\n -lang parse in this grammar" ++ "\n -lang parse in this grammar" ++
"\n -lexer filter input through this lexer" ++ "\n -lexer filter input through this lexer" ++
"\n -parser use this context-free parsing method" ++ "\n -parser use this parsing strategy" ++
"\n -number return this many results at most" ++ "\n -number return this many results at most" ++
"\n examples:" ++ "\n examples:" ++
"\n p -cat=S -new \"jag är gammal\" -- parse an S with the new method" ++ "\n p -cat=S -mcfg \"jag är gammal\" -- parse an S with the MCFG" ++
"\n rf examples.txt | p -lines -- parse each non-empty line of the file" ++ "\n rf examples.txt | p -lines -- parse each non-empty line of the file" ++
"\n" ++ "\n" ++
"\ntt, test_tokenizer: tt String" ++ "\ntt, test_tokenizer: tt String" ++
@@ -496,8 +501,11 @@ txtHelpFile =
"\n -optimize=all first try parametrize then do values with the rest" ++ "\n -optimize=all first try parametrize then do values with the rest" ++
"\n -optimize=none no optimization" ++ "\n -optimize=none no optimization" ++
"\n" ++ "\n" ++
"\n-parser, Context-free parsing algorithm. Under construction." ++ "\n-parser, parsing strategy. The default is chart. If -cfg or -mcfg are selected, only bottomup and topdown are recognized." ++
"\n The default is a chart parser via context-free approximation." ++ "\n -parser=chart bottom-up chart parsing" ++
"\n -parser=bottomup a more up to date bottom-up strategy" ++
"\n -parser=topdown top-down strategy" ++
"\n -parser=old an old bottom-up chart parser" ++
"\n" ++ "\n" ++
"\n-printer, format in which the grammar is printed. The default is gfc." ++ "\n-printer, format in which the grammar is printed. The default is gfc." ++
"\n -printer=gfc GFC grammar" ++ "\n -printer=gfc GFC grammar" ++

View File

@@ -143,22 +143,27 @@ p, parse: p String
Shows all Trees returned for String by the actual Shows all Trees returned for String by the actual
grammar (overridden by the -lang flag), in the category S (overridden grammar (overridden by the -lang flag), in the category S (overridden
by the -cat flag). by the -cat flag).
options: options for batch input:
-lines parse each line of input separately, ignoring empty lines
-all as -lines, but also parse empty lines
options for selecting parsing method:
(default)parse using an overgenerating CFG
-cfg parse using a much less overgenerating CFG
-mcfg parse using an even less overgenerating MCFG
Note: the first time parsing with -cfg or -mcfg might take a long time
options that only work for the default parsing method:
-n non-strict: tolerates morphological errors -n non-strict: tolerates morphological errors
-ign ignore unknown words when parsing -ign ignore unknown words when parsing
-raw return context-free terms in raw form -raw return context-free terms in raw form
-v verbose: give more information if parsing fails -v verbose: give more information if parsing fails
-new use an experimental method (GF 2.0; sometimes very good)
-lines parse each line of input separately, ignoring empty lines
-all as -lines, but also parse empty lines
flags: flags:
-cat parse in this category -cat parse in this category
-lang parse in this grammar -lang parse in this grammar
-lexer filter input through this lexer -lexer filter input through this lexer
-parser use this context-free parsing method -parser use this parsing strategy
-number return this many results at most -number return this many results at most
examples: examples:
p -cat=S -new "jag är gammal" -- parse an S with the new method p -cat=S -mcfg "jag är gammal" -- parse an S with the MCFG
rf examples.txt | p -lines -- parse each non-empty line of the file rf examples.txt | p -lines -- parse each non-empty line of the file
tt, test_tokenizer: tt String tt, test_tokenizer: tt String
@@ -467,8 +472,11 @@ q, quit: q
-optimize=all first try parametrize then do values with the rest -optimize=all first try parametrize then do values with the rest
-optimize=none no optimization -optimize=none no optimization
-parser, Context-free parsing algorithm. Under construction. -parser, parsing strategy. The default is chart. If -cfg or -mcfg are selected, only bottomup and topdown are recognized.
The default is a chart parser via context-free approximation. -parser=chart bottom-up chart parsing
-parser=bottomup a more up to date bottom-up strategy
-parser=topdown top-down strategy
-parser=old an old bottom-up chart parser
-printer, format in which the grammar is printed. The default is gfc. -printer, format in which the grammar is printed. The default is gfc.
-printer=gfc GFC grammar -printer=gfc GFC grammar