  
  
  def test_config_interpolation():
      config = Config().from_str(nlp_config_string, interpolate=False)
      assert config["training"]["corpus"]["train"]["path"] == "${paths.train}"
      interpolated = config.interpolate()
      assert interpolated["training"]["corpus"]["train"]["path"] == ""
      nlp = English.from_config(config)
      assert nlp.config["training"]["corpus"]["train"]["path"] == "${paths.train}"
      # Ensure that variables are preserved in nlp config
 
</s> remove     assert interpolated["training"]["corpus"]["train"]["path"] == ""
 </s> add     assert interpolated["corpora"]["train"]["path"] == "" </s> remove     assert nlp.config["training"]["corpus"]["train"]["path"] == "${paths.train}"
 </s> add     assert nlp.config["corpora"]["train"]["path"] == "${paths.train}" </s> remove     assert nlp2.config["training"]["corpus"]["train"]["path"] == ""
 </s> add     assert nlp2.config["corpora"]["train"]["path"] == "" </s> remove     assert interpolated2["training"]["corpus"]["train"]["path"] == ""
 </s> add     assert interpolated2["corpora"]["train"]["path"] == "" </s> remove     dev_corpus = resolved["training"]["corpus"]["dev"]
 </s> add     dev_corpus = dot_to_object(resolved, resolved["training"]["dev_corpus"])
    assert config["corpora"]["train"]["path"] == "${paths.train}"
  
  
  def test_config_interpolation():
      config = Config().from_str(nlp_config_string, interpolate=False)
    assert config["corpora"]["train"]["path"] == "${paths.train}"
      interpolated = config.interpolate()
      assert interpolated["training"]["corpus"]["train"]["path"] == ""
      nlp = English.from_config(config)
      assert nlp.config["training"]["corpus"]["train"]["path"] == "${paths.train}"
      # Ensure that variables are preserved in nlp config
keep keep keep keep replace keep keep keep keep keep
 generalize corpora, dot notation for dev and train corpus 
spacy/tests/serialize/test_serialize_config.py