Add support for different docvars in structured text file - #147
Conversation
This removes the warning for column coercion Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
|
Not a bad idea, but it breaks the I suggest we think about moving to data.tables internally generally. We'd need to change the docvars.corpus() and |
|
My bad. I'm setting up a git hook and writing some tests so that I don't do this again. Probably not worth changing until we decide on re-writing textfile.R, though. |
|
In principle the way that textfile() handles the docvar structure can be separate from how they are stored in a corpus object - so could be considered separately from the textfile() rewrite. |
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Signed-off-by: Adam Obeng <github@binaryeagle.com>
Current coverage is 7.66%@@ master #147 diff @@
========================================
Files 37 37
Lines 3383 3343 -40
Methods 0 0
Messages 0 0
Branches 0 0
========================================
+ Hits 214 256 +42
+ Misses 3169 3087 -82
Partials 0 0
|
|
@adamobeng I accepted and merged, but you will want to check the functionality for the new line, to make sure it works. Also there are some tests failing in testTextfile now, please attend to these. |
|
@kbenoit The tests in master pass on dev_textfile_columns. Why didn't you merge some of the changes to textfile.R? |
|
I thought I merged all of them... if they got dropped it's because I'm still learning the way to fetch, test/edit, and merge the pull requests. |
Also changes the way corpora are combined to use data.table.
Fixes #131