notAI-tech / deepsegment

A sentence segmenter that actually works!
http://bpraneeth.com/projects
GNU General Public License v3.0
302 stars 56 forks source link

module 'tensorflow.python.framework.ops' has no attribute '_TensorLike' #40

Closed sourabh-zanwar closed 3 years ago

sourabh-zanwar commented 3 years ago

Versions:

  1. deepsegment 2.3.1
  2. tensorflow 2.4.0
  3. keras 2.3.1

Problem: As I try to run the basic code for Sentence Segmentation

from deepsegment import DeepSegment
d = 'this is a sentence this is another sentence'
segmenter = DeepSegment('en')
d_seg = segmenter.segment(d)

I get the following error: AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'

bedapudi6788 commented 3 years ago

Tested with (keras==2.3.1; tensorflow==2.2.0) and (keras==2.2.4; tensorflow==1.14.0)

Emekaborisama commented 3 years ago

Did you resolve this issue because i am getting the same error

bedapudi6788 commented 3 years ago

@Emekaborisama with the specified tensorflow versions?