The possibility for acquisition of statistical network grammar using ergodic HMM