A Functional Extension of Semi-Structured Networks