Every person who shall be convicted of an assault with intent to forcibly ravish any female of previous chaste character shall be punished by imprisonment in the penitentiary for life, or for such shorter time as may be fixed by the jury, or by the court upon the entry of a plea of guilty.