In Kollár's book, Rational curves on Algebraic Varieties, he states the following theorem [II Theorem 1.7].
For a reltative projective flat reduced curve $C$ over an irreducibles base $S$ and a smooth quasi-projective $S$-scheme $X$, given a subscheme $B$ of $C$ flat vover $S$, an $S$-morphism $g:B\rightarrow X$ and a morphism $f:C_s\rightarrow X_s$ that coincides with $g_s$ on $B_s$, there is a dimension estimate, $$\dim_{[f]}Mor_S(C,X;g)\geq \chi(C_s,f^*T_{X_s}\otimes I_{B_s})+\dim S.$$
This is the relative version of another theorem as folllowing which also holds for complex analytic spaces.
Let $C$ be a proper algebraic curve without embedded points and $f:C\rightarrow X$ a morphism to a compact complex manifold $X$ of $n$. Then $$\dim_{[f]} Mor (C, X)\geq \chi (C,f^* TX).$$
My question is that if we replace $X$ in the first theorem by a family of compact complex manifolds, does the conclusion still hold? By a theorem of Namba (see Families of Meromorphic Functions on Compact Riemann Surfaces, Proposition 3.3.1), if $H^1(C_s,f^*T_{X_s})=0$, then $[f]$ is a nonsingular point of $Hol_S(C,X)$ and $\dim_{[f]}Hol_S(C,X)=h^0(C_s,f^*T_{X_s})+\dim_s S$. But I am not sure if we can get a some dimension estimate in the singular case.
Any references and comments are welcome.