def simple_disjunction(n=3): Lex = np.array([[1.0, 1.0, 0.0], [1.0, 0.0, 0.0], [1.0, 1.0, 1.0]]) lexica = [Lex, np.array([[1.0, 0.0, 0.0], [1.0, 0.0, 0.0], [1.0, 1.0, 1.0]]), np.array([[0.0, 1.0, 0.0], [1.0, 0.0, 0.0], [1.0, 1.0, 1.0]])] # Lex = np.array([[1.0, 1.0], # [1.0, 0.0], # [1.0, 1.0]]) # lexica = [Lex, # np.array([[1.0, 0.0], [1.0, 0.0], [1.0, 1.0]]), # np.array([[0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])] mod = Pragmod(lexica=lexica, messages=[r'vee', r'wedge', 'NULL'], meanings=['w_{1}', 'w_{2}', 'w_{3}'], costs=np.array([0.0, 0.0, 5.0]), prior=np.repeat(1.0/3.0, 3), lexprior=np.repeat(1.0/3.0, 3), temperature=1.0, alpha=1.0, beta=0.0) mod.run_base_model(lexica[0], n=n, display=True, digits=4)