Predicting chain conformation and entanglement of polymers from chemical structure