Sam Allardyce says West Ham will appeal against the dismissal of Andy Carroll in Saturday's 2-0 victory over Swansea.