The core logic of the Android app is to process the user requests, along with the data passed, and then send the results back to the user. As a part of this mobile app, the core logic will accept the movie review provided by the user, process the raw data, and convert it to a format that the trained LSTM model can run an inference on. The OnClickListener functionality in Java is utilized to monitor whether the user has submitted a processing request. Each of the words in the provided movie review needs to be changed to their indices, before the input can be fed directly to the optimized trained LSTM model for inference. Aside from the optimized protobuf model, a dictionary of the words and their corresponding ...
The core logic of the Android app
Get Intelligent Projects Using Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.