quadrama / DramaAnalysis

An R package for analysis of dramatic texts
GNU General Public License v3.0
15 stars 2 forks source link

Different number of scenes in configuration function for mode = Active and mode = Passive #169

Open pagelj opened 3 years ago

pagelj commented 3 years ago

For some plays, the number of scenes is not identical when using either mode = "Active" or mode = "Passive" in configuration. It is also not transparent, which column and hence which scene got dropped, because they are automatically numbered. It seems that usually, for Passive there is one scene less than for Active

Plays with this problem include for example: jn65.0, pzj2.0, r2mn.0, th0n.0, x4vf.0, x8nh.0

pagelj commented 3 years ago

This happens in the segment() function when there are no mentions in a scene

pagelj commented 3 years ago

We probably don't want to change the segment function and introduce a row with empty text just to preserve the scene. The solution might be to check in the configuration function which scenes had no mentions and introduce a count of 0 for all characters in that scene

pagelj commented 3 years ago

https://github.com/quadrama/DramaAnalysis/pull/172