Electra-base-sentence-splitter
Hello,I am trying to use Electra sentence Splitter model. However when i try to import the transformers.modeling_tf_electra byfrom transformers.modeling_tf_electra importTFElectraMainLayerit gives an error. I tried to search for it but to no avail, I need to import the TFElectraMainLayer to proceed forward. Any idea how to do that?Attaching image for convinence
2022-07-22T11:34:18Z
Hey@Saad20x, it seems you’re using code that was working with a previous version of transformers. What is your current transformers version?The organization has changed in 3.5.x, please do the following to import the main layer:from transformers.models.electra.modeling_tf_electra import TFElectraMainLayer
2022-07-22T12:41:24Z
@lysandreThank you for the prompt reply, it worked.Just one more question, I was using this to split sentences, but it is showing that task isn’t supported? which is the appropriate one?Thank you & Best Regards51237×354 28.6 KB
2022-07-22T12:53:03Z
Hey@Saad20x, could you expand on what you’re trying to do with sentence splitting? As far as I’m aware, we don’t have such a pipeline?
2022-07-22T13:02:59Z
@lysandreBasically, I am trying to do aspect based sentiment analysis. Like there are certain sentences that have multiple sentences. I was doing some research and found this model,huggingface.copavanchhatpar/electra-base-sentence-splitter · Hugging FaceWe’re on a journey to advance and democratize artificial intelligence through open source and open science.I think this is a pre-tained model that splits sentences.Is this appropriate?Best,