Created
December 14, 2021 22:14
Revisions
-
aih created this gist
Dec 14, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ { // 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: ['xml-meta', 'division', 'part', 'title', 'subtitle', 'chapter', 'section', 'intermediatelevel', 'majorlevel'], //match: ['part', 'title', 'subtitle', 'chapter', 'section', 'toc', 'tocItem', 'docTitle', 'preamble', 'level', 'recital', 'resolutions', 'conclusions', 'regulation', 'table'], // Selectors to ignore sections matched by `match` option ignore : ['section//section', 'section//division', 'section//part', 'section//title', 'section//subtitle', 'section//chapter'], // More accurate, but slower section match fullScan: true, addLocations : true, skipSpace: true, similarity: 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.8, maxScore: 1, normalize: true, wordPatches: true, dmp: { Diff_Timeout: 0, } }