@@ -18,6 +18,8 @@ start.rec.log(text="ExtrDyn")
1818
1919# ###############################################################################
2020tlog(0 ," Extract dynamic networks for ASOIAF" )
21+ char.det <- " implicit"
22+ narr.unit <- " scene"
2123
2224# read raw data
2325tlog(2 ," Reading previously computed corpus stats" )
@@ -33,6 +35,7 @@ scene.stats <- data$scene.stats
3335
3436# extract dynamic networks using the comic publication order (=comic story order)
3537tlog(2 ," Extracting publication-ordered dynamic networks" )
38+ pub.order <- TRUE
3639for (filtered in c(FALSE ,TRUE ))
3740{ tlog(4 ," Dealing with " ,if (filtered ) " " else " un" ," filtered networks" )
3841 gg <- cum.graph.extraction(
@@ -41,11 +44,11 @@ for(filtered in c(FALSE,TRUE))
4144 scene.chars = scene.chars , scene.stats = scene.stats ,
4245 volume.stats = volume.stats ,
4346 filtered = filtered ,
44- pub.order = TRUE ,
45- narr.unit = " scene "
47+ pub.order = pub.order ,
48+ narr.unit = narr.unit
4649 )
47- cum.write.graph(gs = gg , filtered = filtered , pub.order = TRUE , char.det = " implicit " )
48- gg <- cum.read.graph(filtered = filtered , remove.isolates = TRUE , pub.order = TRUE , char.det = " implicit " )
50+ cum.write.graph(gs = gg , filtered = filtered , pub.order = pub.order , char.det = char.det )
51+ gg <- cum.read.graph(filtered = filtered , remove.isolates = TRUE , pub.order = pub.order , char.det = char.det , narr.unit = narr.unit )
4952}
5053
5154
@@ -68,6 +71,7 @@ inter.df[,COL_RANK] <- rank(page.stats[inter.df[,COL_PAGE_START_ID],COL_RANK]*(n
6871
6972# extract dynamic networks using the novel chapter order
7073tlog(2 ," Extracting publication-ordered dynamic networks" )
74+ pub.order <- FALSE
7175for (filtered in c(FALSE ,TRUE ))
7276{ tlog(4 ," Dealing with " ,if (filtered ) " " else " un" ," filtered networks" )
7377 gg <- cum.graph.extraction(
@@ -76,16 +80,28 @@ for(filtered in c(FALSE,TRUE))
7680 scene.chars = scene.chars , scene.stats = scene.stats ,
7781 volume.stats = volume.stats ,
7882 filtered = filtered ,
79- pub.order = FALSE ,
80- narr.unit = " scene "
83+ pub.order = pub.order ,
84+ narr.unit = narr.unit
8185 )
82- cum.write.graph(gs = gg , filtered = filtered , pub.order = FALSE , char.det = " implicit " )
83- gg <- cum.read.graph(filtered = filtered , remove.isolates = TRUE , pub.order = FALSE , char.det = " implicit " )
86+ cum.write.graph(gs = gg , filtered = filtered , pub.order = pub.order , char.det = char.det )
87+ gg <- cum.read.graph(filtered = filtered , remove.isolates = TRUE , pub.order = pub.order , char.det = char.det , narr.unit = narr.unit )
8488}
8589
8690
8791
8892
93+ # ##############################################################################
94+ # alternative: replace volumes by chapters
95+
96+ # create new volume table
97+ # replace each volume and volume id in all the other tables
98+ # problem: cannot process all the volume stats
99+
100+ # alt: create a new narrative unit "chapter"?
101+
102+
103+
104+
89105# ##############################################################################
90106# end logging
91107tlog(0 ," Process complete" )
0 commit comments