Beispiel #1
0
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;
}
Beispiel #2
0
boost::python::list amon::TweetLoader::getHashtagActivations_py(std::string tag) {
	return toPythonList(getHashtagActivations(tag));
}
Beispiel #3
0
boost::python::list amon::TweetLoader::getHashtags_py() {
	return toPythonList(getHashtags());
}