nlp_architect.server package¶
Submodules¶
nlp_architect.server.serve module¶
REST Server to respond to different API requests
nlp_architect.server.service module¶
Service file used to import different features for server
-
class
nlp_architect.server.service.
Service
(service_name)[source]¶ Bases:
object
Handles loading and inference using specific models
-
nlp_architect.server.service.
extract_module_name
(model_path)[source]¶ Extract the module’s name from path
Parameters: model_path (str) – the module’s class path Returns: the modules name Return type: str
-
nlp_architect.server.service.
format_response
(resp_format, parsed_doc)[source]¶ Transform string of server’s response to the requested format
Parameters: - resp_format (str) – the desired response format
- parsed_doc – the server’s response
Returns: formatted response
-
nlp_architect.server.service.
package_home
(gdict)[source]¶ help function for running paths from out-of-class scripts