@menome/document-to-graph
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -63,6 +63,5 @@ | ||
const segmentDefinitions = []; | ||
let rootSegment= rootNode; | ||
// first - clear out any blank or 0 length text lines | ||
@@ -88,3 +87,4 @@ var textSegmentArray=filter_array(segments); | ||
if (segmentDefinition.textSegment.match(hr.HeaderRegex.Heading1)) { | ||
segmentDefinition.connectionNodeType = ct.connectionType.TopicHeading | ||
// Base headings map to Root connection type Parent | ||
segmentDefinition.connectionNodeType = rootNode.connectionNodeType; | ||
segmentDefinition.type = ht.HeaderType.HEADING1 | ||
@@ -91,0 +91,0 @@ segmentDefinition.indexName = segmentDefinition.textSegment.match(hr.HeaderRegex.Heading1)[0] |
{ | ||
"name": "@menome/document-to-graph", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Menome Technologies Inc: takes incoming text and turns it into a structure suitable for a graph", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/menome/DocumentToGraph", |
300804
5448