mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
409 B
10 lines
409 B
import string
|
|
|
|
def get_key_choices():
|
|
selectKey, shortKey = [c for c in string.ascii_lowercase], [c for c in string.ascii_lowercase]
|
|
checkKey = 'ctrl shift'
|
|
shortKey += [ck + ' ' + sk for ck in checkKey.split() for sk in selectKey]
|
|
shortKey += [checkKey + ' ' + sk for sk in selectKey]
|
|
shortKey += ['']
|
|
KEY_CHOICES = ((u, c) for u, c in zip(shortKey, shortKey))
|
|
return KEY_CHOICES
|