NSLinguisticTagger enumerateTagsInRange doesn't work on device with NSLinguisticTagSchemeNameTypeOrLexicalClass

后端 未结 1 1572

Here\'s the code I\'m using, it prints nothing no matter what sentence I use on the device. On simulator it works fine!

- (NSMutableArray *)getTagEntries:(NS         


        
1条回答
  •  走了就别回头了
    2021-01-06 05:24

    Unfortunately, the answer was changing devices. My iPhone X does not have this issue. It may be due to having a dedicated ML chip that the 6s and newer phones have.

    0 讨论(0)
提交回复
热议问题