Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

fxn to coerce folder path of xml/pdf files to ft object to use downstream #172

Closed
sckott opened this issue Oct 2, 2018 · 4 comments
Closed
Milestone

Comments

@sckott
Copy link
Contributor

sckott commented Oct 2, 2018

from #142

I was wondering if it is possible to create an ft class object from the xml files that are stored ...

look into this

@sckott sckott added this to the v1.1.0 milestone Oct 2, 2018
sckott added a commit that referenced this issue Oct 3, 2018
@sckott
Copy link
Contributor Author

sckott commented Oct 3, 2018

@lucymerobinson can you install from master remotes::install_github("ropensci/fulltext") and try the function as.ft_data() , see its examples

@ghost
Copy link

ghost commented Oct 4, 2018

thanks @sckott
the object returned by .as.ft_data doesn't seem to work quite in the same way as the one created by ft_search %>% ft_get %>% ft_collect. So when I use

test <- as.ft_data()

test_text <- test %>% ft_collect() %>% ft_chunks(what="abstract") %>% ft_tabularize()

test_text$cached

data frame with 0 columns and 0 rows

@sckott
Copy link
Contributor Author

sckott commented Oct 4, 2018

okay, thanks. will have a look

sckott added a commit that referenced this issue Oct 10, 2018
@sckott
Copy link
Contributor Author

sckott commented Oct 10, 2018

@lucymerobinson can you reinstall and try again. i think it's fixed.

@sckott sckott closed this as completed in 4caa572 Oct 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant