Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. r = Reason()
  2. s1 = Symbolic('a b c o u t z')
  3. r.add_pattern(pattern=s1, attribute='abc', relation='is')
  4. s2 = Symbolic('v a b c h v l')
  5. r.add_pattern(pattern=s2, attribute='abc', relation='is')
  6. s3 = Symbolic('x y k a b n')
  7. r.add_pattern(pattern=s3, attribute='abc', relation='is not')
  8. s4 = Symbolic('o n o x y g')
  9. r.add_pattern(pattern=s4, attribute='abc', relation='is not')
  10.  
  11. print (r.distinguishing('abc'))
  12. print (r.distinguishing('abc', relation='is not'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement