Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Loading a Trie pickle object in R

$
0
0

I have made a Trie data structure in Python and stored it as a Pickle object but when I trie to load it using R studio which I am using for developing my user interface in Shiny, I get the error: Error in py_call_impl(callable, dots$args, dots$keywords) : AttributeError: Can't get attribute 'Trie' on

My R code is as follows: library(reticulate) library(XRPython) source_python("pickle_reader.py") pickle_data <- pickle_reader("query_trie_harshil.pkl")

And pickle_reader() is a Python function which I am calling from my R script which loads the pickle object. If you guys have any idea of how to resolve this problem, it would be much appreciated.


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>