update recursive neural tensor network for new api