Skip to content

Commit

Permalink
example for align hyphen words added
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshjes committed Nov 4, 2017
1 parent 35f4bc6 commit fb048d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions monolingualWordAligner/example_align.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from wordAligner import *

sentence1 = "UAE is one of biggest country in the world."
sentence2 = "Many people are living in United Arab Emirates"
sentence1 = "UAE is really well-designed country in the world. US is powerful country"
sentence2 = "Really well designed is United Arab Emirates. But United States is more populated"

print "sentence1 = ", sentence1
print "sentence2 = ", sentence2

if __name__ == '__main__':

processing = Aligner()
print "Words alignment ", processing.align_sentences(sentence1,sentence2)
processing.align_sentences(sentence1,sentence2)

0 comments on commit fb048d1

Please sign in to comment.