# Path: general/filePath.py



import os,sys
import json
import numpy as np
from scoreManip import retrieveSylInfo
from general.phonemeMap import *
from general.pinyinMap import *
from general.filePath import class_name
from scipy.linalg import block_diag
 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the Affero GNU General Public License
 * version 3 along with this program.  If not, see http://www.gnu.org/licenses/
 *
 * If you have any problem about this python version code, please contact: Rong Gong
 * rong.gong@upf.edu
 *
 *
 * If you want to refer this code, please use this article:
 *
'''


currentPath = os.path.dirname(__file__)
parentPath = os.path.join(currentPath, '..')
sys.path.append(parentPath)


TRANS_PROB_SELF = 0.9
TRANS_PROB_NEXT = 1-TRANS_PROB_SELF

if class_name == 'laosheng':
    with open(os.path.join(currentPath,'dict_centroid_dur_laosheng.json'),'r') as openfile:
        dict_centroid_dur = json.load(openfile)

# Path: general/filePath.py



# Path: phoneticSimilarity/lyricsRecognizer/makeNet.py
import os,sys
import json
import numpy as np
from scoreManip import retrieveSylInfo
from general.phonemeMap import *
from general.pinyinMap import *
from general.filePath import class_name
from scipy.linalg import block_diag

 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the Affero GNU General Public License
 * version 3 along with this program.  If not, see http://www.gnu.org/licenses/
 *
 * If you have any problem about this python version code, please contact: Rong Gong
 * rong.gong@upf.edu
 *
 *
 * If you want to refer this code, please use this article:
 *
'''


currentPath = os.path.dirname(__file__)
parentPath = os.path.join(currentPath, '..')
sys.path.append(parentPath)


TRANS_PROB_SELF = 0.9
TRANS_PROB_NEXT = 1-TRANS_PROB_SELF

if class_name == 'laosheng':
    with open(os.path.join(currentPath,'dict_centroid_dur_laosheng.json'),'r') as openfile:
        dict_centroid_dur = json.load(openfile)

elif class_name == 'danAll':