15.4.7. crate_anon.nlp_manager.input_field_config¶
Copyright (C) 2015-2018 Rudolf Cardinal (rudolf@pobox.com).
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 <http://www.gnu.org/licenses/>.
-
class
crate_anon.nlp_manager.input_field_config.
InputFieldConfig
(nlpdef: crate_anon.nlp_manager.nlp_definition.NlpDefinition, section: str)[source]¶ Class defining configuration for an input field (containing text).
-
gen_src_pks
() → Generator[[Tuple[int, Union[str, NoneType]], NoneType], NoneType][source]¶ Generate integer PKs from the source table specified for the InputFieldConfig. Timing is subsumed under TIMING_DELETE_WHERE_NO_SOURCE.
-
gen_text
(tasknum: int = 0, ntasks: int = 1) → Generator[[Tuple[str, Dict[str, Any]], NoneType], NoneType][source]¶ Generate text strings from the input database. Yields tuple of (text, dict), where the dict is a column-to-value mapping for all other fields (source reference fields, copy fields).
-
static
get_core_columns_for_dest
() → List[sqlalchemy.sql.schema.Column][source]¶ Core columns in destination tables, primarily referring to the source.
-
static
get_core_indexes_for_dest
() → List[sqlalchemy.sql.schema.Index][source]¶ Indexes for columns, primarily referring to the source.
-