I am using languageTool with Python but it is quite slow when I actually have long text or lots of texts I want to move forward. I continue to read that how long the suggestion mechanism is, I really do not need any suggestions, I am interested only on rule_ID and category.
Do anyone know how to stop this suggestion mechanism to get some suggestions on processing power?
It looks like the closest argument is -a
, but it To enable automatic application of suggestions only, do not disable suggestions, this is an open source so that you can edit it yourself and a logic.
parser.add_argument ("file", help = "plain text file" or "for stdin") parser. Add_argument ("- c", "- encoding", help = "input encoding") parser.add_argument ("- l", "--language", metavar = "CODE", help = "language code of input or Parser Add_argument ("- d", "-" "parser.add_argument" "parser.add_argument" ("- m", "-mother-tongue", metavar = "CODE", help = "language code of your first language" Disabled ", metavar =" rule ", type = get_rules, action = rulesAction, default = set (), help =" list of rules ID to disable ") parser.add_argument (" - e "," --enable " , Metavar = "Rule", type = get_rules, action = rulesAction, default = set (), help = "list of rules ID to enable") parser.add_argument ("- api", action = "store_true", help = "XML's Parser.add_arg script ("version", action = "version", version = "language language {} ({}). Format (language_tool.get_version (), language_tool.get_build_date ()), help = Parser.add_argument ("- A", "--apply", action = "store_true", help = "Apply the suggestions automatically if available") "parser.add_argument" (" Parser.add_argument ("file", "-spell-check-off", "=" Spell_check ", action =" store_flash ", help =" disable spell-checking rules ") return parser. Help = "plain text file or Parser.add_argument ("- l", "--language", metavar = "CODE", help = "parser.add_argument" for stdin ("- c", "- encoding", help = "input encoding" "Language code input or" auto ") parser.ad_argent (" -m "," -master-tongue ", metabar =" CODE ", that Lp =" language code of your first language ") parser.add_argument (" D "," --disable ", metavar =" rule ", type = get_rules, verb = rule verb, default = set (), help =" list of list rule id "," list of rule id ", "To pars", "to enable") parser.add_argument ("- api", action = "store_tru" E ", help =" print result in XML ") parser.add_argument (" - version ", action =" version ", version =" language tool {} ({}) ".format (language_tool.get_version (), language_tool Parser.add_argument ("- a", "--apply", verb = "Store_true", help = "if available, suggestions automatically ("--spell-check-off", des T = "spell_check", action = "store_false", help = "disable spell-checking rules") returns the parser.add_argument ("--s",) Parser.pre_arag ()
No comments:
Post a Comment