Reconstructing the three-dimensional structure of star-forming cores with the help of neural networks Open Access Government