15.4.9. crate_anon.nlp_manager.models¶
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.models.
NlpRecord
(**kwargs)[source]¶ Class to record the fact of processing a source record (and to keep a hash allowing identification of altered source contents later).
-
nlpdef
¶ Name of natural language processing definition that source was processed for
-
pk
¶ PK of NLP record (no specific use)
-
srcdb
¶ Source database
-
srcfield
¶ Name of column in source field containing actual data
-
srchash
¶ Secure hash of source field contents at the time of processing
-
srcpkfield
¶ Primary key column name in source table (for info only)
-
srcpkstr
¶ Original string PK, used when the table has a string PK, to deal with hash collisions. Max length – 64
-
srcpkval
¶ Primary key value in source table (or hash if PK is a string)
-
srctable
¶ Source table name
-
whenprocessedutc
¶ Time that NLP record was processed
-