PARIS — The police in France received drastically more reports of sexual crimes last year, according to a government analysis that found victims had grown more willing to come forward, in part because of the #MeToo movement.

Reports of rape increased by nearly 17 percent from 2017 to 2018, and reports of other types of sexual assault, including sexual harassment, by about 20 percent, according to the analysis, an annual review of crime statistics issued on Thursday by the French Interior Ministry.

The publication coincided with the conviction on Thursday of two former elite police officers, Antoine Quirin and Nicolas Redouane, who were sentenced to seven years in prison for the gang rape of a Canadian tourist, Emily Spanton, in a case that had come to be seen by some as a test of how the French authorities treat victims of sexual violence.

Ms. Spanton, now 39, revealed her identity to speak publicly about her ordeal and what she described as an invasive investigation, after which judges initially dismissed the case. Mr. Quirin and Mr. Redouane, whose names were initially protected under French law because they belonged to an anti-gang unit, have repeatedly denied the accusations, and are appealing their convictions.