581
582
583
584
585
586
587
588
589
590
591
|
"paragraph_rules": mergeRulesByOption(lParagraphRules),
"sentence_rules": mergeRulesByOption(lSentenceRules),
"paragraph_rules_JS": jsconv.writeRulesToJSArray(mergeRulesByOption(lParagraphRulesJS)),
"sentence_rules_JS": jsconv.writeRulesToJSArray(mergeRulesByOption(lSentenceRulesJS)) }
d.update(dOptions)
# compile graph rules
d2 = crg.make(lGraphRule, sLang, bJavaScript)
d.update(d2)
return d
|
|
|
581
582
583
584
585
586
587
588
589
590
591
|
"paragraph_rules": mergeRulesByOption(lParagraphRules),
"sentence_rules": mergeRulesByOption(lSentenceRules),
"paragraph_rules_JS": jsconv.writeRulesToJSArray(mergeRulesByOption(lParagraphRulesJS)),
"sentence_rules_JS": jsconv.writeRulesToJSArray(mergeRulesByOption(lSentenceRulesJS)) }
d.update(dOptions)
# compile graph rules
d2 = crg.make(lGraphRule, dDEF, sLang, bJavaScript)
d.update(d2)
return d
|