Created
March 5, 2022 06:21
-
-
Save aih/e2fe3545ca44b79a4f96f2ac0da70241 to your computer and use it in GitHub Desktop.
Options.js with tables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Selectors for mapping sections in document: | |
// `key` is a selector to match section | |
// `value` is an array of element selectors to exclude | |
// from matched section content. Pass empty array or `null` | |
// to include full content | |
match: ['part', 'title', 'subtitle', 'chapter', 'section', 'toc', 'tocItem', 'preface', 'level', 'table', 'recital', 'resolutions', 'conclusions', 'preamble', 'regulation', 'schedule', 'article', 'docTitle', 'docNum'], | |
// Selectors to ignore sections matched by `match` option | |
ignore: ['paragraph//paragraph', 'level//paragraph', 'level//level'], | |
// More accurate, but slower section match | |
fullScan: true, | |
// Array of manual `[from, to]` section mappings. | |
// For example, `[ [3, 1] ]` will map third section of `from` | |
// document to first section of `to` document. | |
// Indexes as 1-based, see section markers for matched indexes. | |
// If set, enabled `fullScan` by default | |
mapping: null, | |
minScore: 0.5, | |
maxScore: 1, | |
normalize: true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment