ScalaConsultants / Aspect-Based-Sentiment-Analysis

💭 Aspect-Based-Sentiment-Analysis: Transformer & Explainable ML (TensorFlow)
Apache License 2.0
543 stars 90 forks source link

ValueError: Input 0 of layer classifier is incompatible with the layer: : expected min_ndim=2, found ndim=0. Full shape received: [] #34

Closed daniiarabdiev closed 3 years ago

daniiarabdiev commented 3 years ago

When running an example

dh12306 commented 3 years ago

I have some error

jedmijares commented 3 years ago

I'm getting the same error, not sure what the problem is.

daniiarabdiev commented 3 years ago

I believe, I resolved the error by downgrading transformers library to 2.5

On Mon, Dec 14, 2020 at 11:18 PM Jed Mijares notifications@github.com wrote:

I'm getting the same error, not sure what the problem is.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ScalaConsultants/Aspect-Based-Sentiment-Analysis/issues/34#issuecomment-744586309, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALXWVPH44WLW36MQP5TH4PLSUZCH5ANCNFSM4UZL4G5A .

rolczynski commented 3 years ago

Hey folks! I have fixed this - please update to the version 2.0.2 😊 Out of curiosity - it's transformers lib.