content_encoder
genlm.eval.domains.spider.spider_eval.content_encoder
Copyright (c) 2020, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause Encode DB content.
Adapted from: https://github.com/ElementAI/picard/blob/5ddd6cb9f74efca87d4604d5ddddc1b638459466/seq2seq/utils/bridge_content_encoder.py which is adapted from: https://github.com/salesforce/TabularSemanticParsing/blob/0b094d329a5f0b5c038a820117ba4b6e7b6215cc/src/common/content_encoder.py