Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

represent course of drama through scaled time #113

Open
t-lini opened this issue Jul 24, 2018 · 3 comments
Open

represent course of drama through scaled time #113

t-lini opened this issue Jul 24, 2018 · 3 comments
Assignees

Comments

@t-lini
Copy link

t-lini commented Jul 24, 2018

Different way of representing the temporal dimension of drama: map text of drama onto some concept of scaled time that is independent from its segmentation.

@t-lini t-lini self-assigned this Jul 24, 2018
@t-lini
Copy link
Author

t-lini commented Aug 22, 2018

Possible solution: introduce functionality to divide a text into a user-defined number of chunks of equal size on token-basis, then add the relevant chunk number to each row (token) of the mtext dataframe.
Other solutions would be to compute chunks on the basis of sentences (would require automatic sentence segmentation) or individual figure speeches (which might be tricky because speeches highly differ in length).

@t-lini
Copy link
Author

t-lini commented Aug 22, 2018

Possible solution: introduce functionality to divide a text into a user-defined number of chunks of equal size on token-basis, then add the relevant chunk number to each row (token) of the mtext dataframe.

This is simple. Example for segmentation into 100 chunks of equal size:

t <- rksp.0$mtext
t[["chunk"]] <- cut(seq_along(t$Token.surface), 100, labels = FALSE)

@nilsreiter nilsreiter removed the R label Mar 13, 2019
@t-lini
Copy link
Author

t-lini commented Apr 10, 2019

Implementation for 2.x: override "act"-column with chunks.

t-lini pushed a commit that referenced this issue May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants