Giter Site home page Giter Site logo

harisbinzia / pronouncur Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 8.0 36.78 MB

PronouncUR: An Urdu Pronunciation Lexicon Generator

License: MIT License

Python 61.95% HTML 38.05%
speech-recognition speech-synthesis pronunciation-dictionary urdu pronunciation-lexicon

pronouncur's Issues

Usage guide

Hi,
This seems to be amazing but unfortunately there is no usage guide in the readme. It would be great if you can tell us how to use it and what options are in the application.

AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'core_rnn_cell'

On running app.py with python3 I received AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'core_rnn_cell'

The whole output is as follows:

(tf1) metanet@metanet-Precision-Tower-7810:~/ProgramFiles/pronouncUR/PronouncUR$ python3 app.py
Loading vocabularies from itudict
WARNING:tensorflow:From /home/metanet/ProgramFiles/pronouncUR/PronouncUR/g2p.py:66: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

2022-07-03 11:01:30.365847: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2022-07-03 11:01:30.406687: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
name: NVIDIA GeForce RTX 3080 Ti major: 8 minor: 6 memoryClockRate(GHz): 1.665
pciBusID: 0000:03:00.0
2022-07-03 11:01:30.407012: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2022-07-03 11:01:30.408631: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10.0
2022-07-03 11:01:30.410073: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10.0
2022-07-03 11:01:30.410381: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10.0
2022-07-03 11:01:30.412172: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10.0
2022-07-03 11:01:30.413463: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10.0
2022-07-03 11:01:30.417611: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2022-07-03 11:01:30.417960: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
2022-07-03 11:01:30.418399: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2022-07-03 11:01:30.446934: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2394455000 Hz
2022-07-03 11:01:30.451648: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55f574bdb5c0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2022-07-03 11:01:30.451699: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2022-07-03 11:01:30.699749: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55f576b8e680 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2022-07-03 11:01:30.699826: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 3080 Ti, Compute Capability 8.6
2022-07-03 11:01:30.700408: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
name: NVIDIA GeForce RTX 3080 Ti major: 8 minor: 6 memoryClockRate(GHz): 1.665
pciBusID: 0000:03:00.0
2022-07-03 11:01:30.700510: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2022-07-03 11:01:30.700545: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10.0
2022-07-03 11:01:30.700576: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10.0
2022-07-03 11:01:30.700610: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10.0
2022-07-03 11:01:30.700642: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10.0
2022-07-03 11:01:30.700674: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10.0
2022-07-03 11:01:30.700707: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2022-07-03 11:01:30.701298: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
2022-07-03 11:01:30.701377: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2022-07-03 11:01:30.701951: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix:
2022-07-03 11:01:30.701986: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165] 0
2022-07-03 11:01:30.702006: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 0: N
2022-07-03 11:01:30.702727: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1304] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 11050 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 3080 Ti, pci bus id: 0000:03:00.0, compute capability: 8.6)
Creating 2 layers of 512 units.
WARNING:tensorflow:

WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:

Traceback (most recent call last):
File "app.py", line 23, in
g2p_model.load_decode_model()
File "/home/metanet/ProgramFiles/pronouncUR/PronouncUR/g2p.py", line 74, in load_decode_model
forward_only=True)
File "/home/metanet/ProgramFiles/pronouncUR/PronouncUR/seq2seq_model.py", line 121, in init
single_cell = tf.contrib.rnn.core_rnn_cell.GRUCell(size)
AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'core_rnn_cell'

(tf1) metanet@metanet-Precision-Tower-7810:~/ProgramFiles/pronouncUR/PronouncUR$ pip show tensorflow
Name: tensorflow
Version: 1.15.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
License: Apache 2.0
Location: /home/metanet/miniconda3/envs/tf1/lib/python3.7/site-packages
Requires: numpy, protobuf, absl-py, wrapt, tensorflow-estimator, opt-einsum, termcolor, keras-applications, grpcio, google-pasta, six, gast, tensorboard, keras-preprocessing, astor, wheel
Required-by:

(tf1) metanet@metanet-Precision-Tower-7810:~/ProgramFiles/pronouncUR/PronouncUR$

Open source dataset

Would you please open source your dataset so as to move the research in this area forward? It would be much appreciated. One of the bottlenecks in the research in the Urdu language is the scarcity of the available dataset.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.