This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import itertools | |
from multiprocessing import Pool | |
from random import shuffle, choice | |
from scipy.stats import dirichlet | |
from scipy.misc import logsumexp | |
from nltk.tree import Tree |