A neighbor heard the attack, tore down a portion of chain-link fence and rescued the child, according to sheriff's officials.
The child suffered severe facial injuries and was airlifted to a local hospital.
Sheriff's officials said the child is expected to survived.
"During the course of the investigation, deputies found the home to be filthy and living conditions were hazardous and not suitable for children," officials said in a news release.
The child's mother, Samantha Meyers, 22, and Nathan Albey, 25, were arrested on felony child endangerment charges, according to the release.
An 8-month-old female at the home was taken into protective custody by Child Protective Services.
The incident occurred at about 3:19 p.m. in the 13000 block of Davenport Street.
(Bakersfield.com - March 22, 2018)