On a Method of Calculation of Semi-Invariants