Closed youssefavx closed 4 years ago
Delete the .DeepSegment_en directory in your home folder manually and rerun. The checkpoint download didn't finish.
Works great now! Thanks very much!
Hi, I have quite the same problem,but I don't have the .DeepSegment_en directory in my home folder ...
Here is the bug and error messages :
Using TensorFlow backend.
2021-02-01 13:03:30.843192: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2021-02-01 13:03:30.843436: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
WARNING:root:Tensorflow serving is not installed. Cannot be used with tesnorflow serving docker images.
WARNING:root:Run pip install tensorflow-serving-api==1.12.0 if you want to use with tf serving.
2021-02-01 13:03:35.678564: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2021-02-01 13:03:36.634608: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: Quadro T2000 computeCapability: 7.5
coreClock: 1.62GHz coreCount: 16 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 104.34GiB/s
2021-02-01 13:03:36.635303: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2021-02-01 13:03:36.637017: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cublas64_10.dll'; dlerror: cublas64_10.dll not found
2021-02-01 13:03:36.644040: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2021-02-01 13:03:36.645047: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2021-02-01 13:03:36.645828: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
2021-02-01 13:03:36.646821: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusparse64_10.dll'; dlerror: cusparse64_10.dll not found
2021-02-01 13:03:36.647576: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudnn64_7.dll'; dlerror: cudnn64_7.dll not found
2021-02-01 13:03:36.647772: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1598] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2021-02-01 13:03:36.648954: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2021-02-01 13:03:36.668580: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x1d4397200e0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-02-01 13:03:36.668786: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2021-02-01 13:03:36.669504: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-02-01 13:03:36.670568: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108]
Traceback (most recent call last):
File "test_deepsegment.py", line 6, in
Can you help me please ? Thanks !
@CamilleSchr when initialising for the first time, DeepSegment downloads the required checkpoints from the releases section of this repo. It looks like your download was corrupted or partially downloaded.
You can download these files manually from https://github.com/notAI-tech/deepsegment/releases/download/v1.0.2/en_checkpoint https://github.com/notAI-tech/deepsegment/releases/download/v1.0.2/en_params https://github.com/notAI-tech/deepsegment/releases/download/v1.0.2/en_utils
and use them like this
from deepsegment import DeepSegment
segmenter = DeepSegment(lang_code=None, checkpoint_path=CHECKPOINT_PATH, params_path=PARAMS_PATH, utils_path=UTILS_PATH)
Describe the bug and error messages (if any) I've tried to run:
segmenter = DeepSegment('en') text = Path('data/bandt.txt').read_text() tokens = segmenter.segment(text)
In both python3.7 and python3.6 and I'm getting this same error:
**The code snippet which gave this error***
Specify versions of the following libraries
Expected behavior For the sentences in text to be tokenized