code: def add_field(self, field_name: str, field: Field, vocab: Vocabulary = None) -> None:
          
          self.fields[field_name] = field
          if self.indexed:
              field.index(vocab)
docs: Add the field to the existing fields mapping.
          If we have already indexed the Instance, then we also index `field`, so
          it is necessary to supply the vocab.