Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import subprocess
- set1 = 'church#n#1'
- set2 = 'temple#n#1'
- cmd = ['perl', './sample.pl', set1, set2]
- proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
- for line in proc.stdout:
- if 'Similarity' in line:
- similarity = int(line.split("=")[-1])
- print similarity
Advertisement
Add Comment
Please, Sign In to add comment