Closed macc-n closed 1 year ago
@macc-n Thanks for your feedback! We will investigate and update as appropriate.
@macc-n
I've delegated this to @mssaperla, a content author, to review and share their valuable insights.
Thanks for providing feedback that helps improve our documentation. We've created an internal work item (DOC-9222) to address your feedback. The timeline for resolution varies based on resourcing.
In the meantime, we recommend that you reach out to the Databricks Online User Community.
Hello,
I'm trying to execute the example of the NER inference pipeline reported in this article: https://learn.microsoft.com/it-it/azure/databricks/machine-learning/train-model/huggingface/model-inference-nlp
The exact code is the following:
But I receive the following error in the defition of the function
ner_udf
:NotImplementedError: Invalid return type with scalar Pandas UDFs: ArrayType(StructType([StructField('word', StringType(), True), StructField('entity_group', StringType(), True), StructField('score', FloatType(), True), StructField('start', IntegerType(), True), StructField('end', IntegerType(), True)]), True) is not supported
I'm using a cluster with runtime 11.3 LTS with Apache Spark 3.3.0 and Scala 2.12
Dettagli del documento
⚠ Non modificare questa sezione. È necessaria per i collegamenti relativi ai problemi tra learn.microsoft.com ➟ GitHub.