class_docstr: Seq2Edits for grammatical error correction.
class_docstr_tok: ["Seq2Edits","for","grammatical","error","correction","."]
code: def feature_encoders(self, data_dir):
      subword_encoder = text_encoder.SubwordTextEncoder(
          os.path.join(data_dir, self.vocab_file)
      )
      error_tag_encoder = text_encoder.TokenTextEncoder(
          os.path.join(data_dir, self.error_tag_vocab_file)
      )
      return {
          "inputs": subword_encoder,
          "targets": subword_encoder,
          "targets_error_tag": error_tag_encoder,
      }
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 5 for calling the Seq2editsGec obj's underlying member method code with example usage: obj.feature_encoders(data_dir) and returns: dict