It's that movie called Last Samurai with Tom Cruise. It wasn't even filmed in Japan, it was filmed in New Zealand, and I don't know if the female lead in the movie is even Japanese.
The title of the movie according to the Japanese text is BUSHIDO, which is quite misleading.