Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pattern.web import sort
- results = sort(terms=[
- 'arnold schwarzenegger', 'bruce willis', 'dolph lundgren', 'sylvester stallone', 'antonio banderas',
- 'don wilson', 'steve austin', 'van damme', 'harrison ford', 'mel gibson', 'wesley snipes',
- 'eric roberts', 'gary daniels', 'jason statham', 'jet li', 'mickey rourke', 'randy couture',
- 'terry crews', 'chuck norris'], context='deadly', prefix=True)
- for weight, term in results:
- print "%.2f" % (weight * 100) + '%', term
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement