The first argument to `Layer.call` must always be passed
Hello Everyone,I am trying to simply import a modelmodel = TFElectraForSentenceSplitting.from_pretrained(“google/electra-base-discriminator”)An error keeps popping up,51011×520 31.3 KBCan you please help me out?Kind Regards
2022-07-26T12:48:07Z
Hi, this is an interesting one!TFElectraForSentenceSplittinghas a name that looks a lot like one of our classes, but I can’t find it in our docs or codebase anywhere. Can you tell me where you found that model? I don’t think it’s one of ours!
2022-07-27T08:52:06Z
Hello@Rocketknight1Here’s how I got it,huggingface.copavanchhatpar/electra-base-sentence-splitter · Hugging FaceWe’re on a journey to advance and democratize artificial intelligence through open source and open science.Also, is this used to split sentences? meaning is it possible to pass a dataframe from it to get split sentences?Regards
2022-07-27T13:25:22Z
Hi@Saad20x, I’m still confused! The reason is thatTFElectraForSentenceSplittingis not a class in our library, which means that no matter what model a user has saved, that code shouldn’t work (without some external library that defines that class).Have you installed some other sentence-splitting library that defines that class? If so, that’s probably where the source of this issue is!