PhiWeave is a machine learning library for structured prediction via factor graphs. It is part of an ongoing effort to implement and improve on the current state-of-the-art in inference and parameter estimation for graphical models.