quadrama / dramaanalysis Goto Github PK
View Code? Open in Web Editor NEWAn R package for analysis of dramatic texts
License: GNU General Public License v3.0
An R package for analysis of dramatic texts
License: GNU General Public License v3.0
Add genre classification stuff from Kleist paper
It should be possible to load data directly from a directory containing XMI files. Options:
The latter is probably easier to maintain and distribute, but needs a lot more new code.
The file Report.Rmd
can not be found, because it is not installed in the correct directory.
It should be possible to work with texts from multiple collections side by side
Grouping criterion should be settable. It's currently set to figure or drama only.
It should be possible to get a list of all available files.
Identifying the independent set based on all drama characters would be cool.
Idea from Solomon Marcus:
Für die Szenenführung ist der Begriff des Kerns von besonderer Bedeutung. Die szenische Anlage eines Theaterstücks impliziert die Wahl eines Kerns von Charakteren, d.h. des Kerns eines Graphen, auf den sich die gesamte Aufführung stützt. Meistens läßt ein (selbst endlicher) Graph mehrere Kerne zu; es kann aber auch vorkommen, daß er überhaupt keinen Kern zuläßt.
(Marcus, 1973)
If should be selectable whether we count lemmas or surface forms
Warning messages:
1: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
invalid input found on input connection 'http://zwergdrossel.ims.uni-stuttgart.de:8080/drama.web/annotations/n750.0/de.unistuttgart.ims.drama.api.Utterance/de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token'
2: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
invalid input found on input connection 'http://zwergdrossel.ims.uni-stuttgart.de:8080/drama.web/annotations/rhzq.0/de.unistuttgart.ims.drama.api.Utterance/de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token'
Functions to quickly count the number of utterances/sentences/token/...
The component contains a data.table
instead of a vector.
normalisierung in r checken, da andere ergebnisse als auf website
Package needs to keep a record of date/version of currently downloaded archive.
Integrate code to calculate
into the package.
Currently, files have to end on .txt
, this should be settable.
It should be possible to specify a default collection and then just provide text ids. collectionId:textId
should not be used anymore, if possible.
Some results just can't be. Association between words and counts is lost somewhere.
If we post XMI files to figshare, they could be loaded from there.
The function should return a list with various components, one of them a matrix with the actual values, similarly to the configuration()
-function
There is currently no convenient way to handle the collections we have in quadrama/metadata.
multiple authors or dates
Drama
FS and thus accessible directlyAuthor
or Translator
annotations can be extracted using getAnnotations()
(verification needed)DocumentMetaData
features can not be retrieved right now.
Add a method to generate word frequency lists for sub corpora
On windows, all data is interpreted as latin-1 (cp 1252).
It has been suggested here to use readr to re-encode the data as UTF-8.
All functions should use a unified name convention, probably lowerCaseCamel
Add function for collecting utterance statistics.
We need an explanation on how to load data
loadText()
returns NA-values for columns Speaker.figure_surface and Speaker.figure_id
When utterances don't have tokens in them, we get a line with less columns than expected. They should be either removed entirely or filled with null-values.
loadText()
should be able to load from a factor, i.e. by applying as.character() before loading
Calculate keyness
for words across figures or corpora.
First method:
When quadrama/DramaNLP#10 is done, we can now longer count the tokens in the table to get the length of the drama, as some tokens might be present twice (if uttered by multiple figures)
There is currently no way to load meta data (e.g., publication date or title).
We remove the Java stuff, and load directly from standardised CSV files
Printing only when in debug mode
Add functions head()
and tail()
to get the first/last n
acts or scenes
Sets are not corpora (like TextGrid), but sub-corpora, like "Bürgerliches Trauerspiel".
Sets are defined in plain text files that list ids. Currently, they are stored in /metadata/collections.
Integrate the spider web plotting functions developed for the Kleist article
Loading a large number of texts often causes heap space issues.
The function loadSegmentedText()
needs to do as.character(...)
on the arguments.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.