Chapter 10 (NLP) - machine learning model error in starter/final code

Hi,

I’m very much enjoying reading the 0.2 advance version of the book!

However, the starter and final projects both have errors in the Sentiment.mlmodel CoreML document. When I do a build I get the following Xcode error:

There was an problem decoding this CoreML document
validator error: Description of multiarray feature ‘wordCount’ has an invalid or unspecified dataType. It must be specified as DOUBLE, FLOAT32 or INT32

I’m using Xcode 9.0 beta 6 (9M214v).

I’d be grateful for any suggestions!

Russell

@mkatz Could you please help with this when you get a chance? Thank you - much appreciated! :]

Running xcrun coremlcompiler repair <path/to/Sentiment.mlmodel> fixes the “has invalid or unspecified dataType” validation error on the model.

That’s great! Thank you very much - worked perfectly!

This topic was automatically closed after 166 days. New replies are no longer allowed.