{"QuestionId":57473527,"AnswerCount":1,"Tags":"","CreationDate":"2019-08-13T08:02:41.707","AcceptedAnswerId":57474276.0,"OwnerUserId":10232932.0,"Title":"Text classification with IMDB dataset get_word_index error, how to change the path","Body":"

As I am behind a proxy, I cannot access the IMDB dataset directly, so I saved the complete package in:<\/p>\n\n

<\/pre>\n\n

I can successfully load the following command:<\/p>\n\n

<\/pre>\n\n

Where I have the train and test data.<\/p>\n\n

When I want to proceed with basic text classification<\/a>, I have to get the word index:<\/p>\n\n

<\/pre>\n\n

I (again) get the error: <\/p>\n\n

<\/pre>\n\n

How can I avoid this?<\/p>\n\n

I understand that I can adjust the path:<\/p>\n\n

<\/pre>\n\n

But what is the right path in my case?<\/p>\n","answers":[{"AnswerId":"57474276","CreationDate":"2019-08-13T08:53:45.037","ParentId":null,"OwnerUserId":"349130","Title":null,"Body":"

Again, same drill, download the file at https:\/\/storage.googleapis.com\/tensorflow\/tf-keras-datasets\/imdb_word_index.json<\/a> and put it inside C:\\Users\\<your_username>\\.keras\\datasets<\/code> and then use get_word_index<\/code> as normal.<\/p>\n"}]} {"QuestionId":57474105,"AnswerCount":0,"Tags":"","CreationDate":"2019-08-13T08:42:50.963","AcceptedAnswerId":null,"OwnerUserId":10666066.0,"Title":"api_def.pb.h not found when building tensorflow","Body":"

I'm currently trying to build c++ tensorflow example<\/a> on windows and then i get the following error:<\/p>\n\n

\n

fatal error: tensorflow\/core\/framework\/api_def.pb.h: No such file or directory<\/p>\n<\/blockquote>\n\n

I checked and see that is missing in the directory. It's strange that I downloaded whole source code from here<\/a>, which I think there should be nothing wrong with it since it's the official site. But then I realized that not only this file but all the requiring files are missing. Such as , , , ...<\/p>\n\n

Though I can manually search on google, download and add other files to the appropriate directory, but in this case, all the result for file is about including it, none is about the content of raw file.<\/p>\n\n

My questions are:<\/p>\n\n