boost::python::dict Bibliography::getDict() { boost::python::dict dictPy; typedef std::map<string, BibCiteStruct>::iterator it_type; for(it_type it = bibFrequency.begin(); it != bibFrequency.end(); it++) { BibCiteStruct bibItem = it->second; dictPy[bibItem.source] = toPythonList(bibItem.citations); } return dictPy; }
boost::python::list amon::TweetLoader::getHashtagActivations_py(std::string tag) { return toPythonList(getHashtagActivations(tag)); }
boost::python::list amon::TweetLoader::getHashtags_py() { return toPythonList(getHashtags()); }