Neural-network simulations of two context-dependence phenomena