The analysis strategy for the measurement of the electron flux with CALET on the International Space Station