NaturalLanguage, Named Entity recognition not working anymore in

The code

https://developer.apple.com/documentation/naturallanguage/identifying_people_places_and_organizations

works on Swift Playground 4.3.1 under iPad OS but under XCode 14.3.1 the named entities are not recognized and for every word I get: ["Other": 1.0].

Strangely, I had the code work in an iOS App under XCode 14.3.1 but there seems to be some level of unpredictability as to when it works or not.

Any hints?