14.5.9. crate_anon.nlp_manager.cloud_config
crate_anon/nlp_manager/cloud_config.py
Copyright (C) 2015, University of Cambridge, Department of Psychiatry. Created by Rudolf Cardinal (rnc1001@cam.ac.uk).
This file is part of CRATE.
CRATE is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
CRATE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with CRATE. If not, see <https://www.gnu.org/licenses/>.
Config object used for cloud NLP requests.
- class crate_anon.nlp_manager.cloud_config.CloudConfig(nlpdef: NlpDefinition, name: str, req_data_dir: str)[source]
Common config object for cloud NLP.
- __init__(nlpdef: NlpDefinition, name: str, req_data_dir: str) None [source]
Reads the config from the NLP definition’s config file.
- Parameters:
nlpdef – a
crate_anon.nlp_manager.nlp_definition.NlpDefinition
name – name for the cloud NLP configuration (to which a standard prefix will be added to get the config section name)
req_data_dir – directory in which to store temporary request files
- property data_filename: str
Returns the filename to be used for storing data.