Is there a way to use Scikit-learn to map words to indexes where it starts from 1 and not from 0?
Example - Pseudo code:
sequence = ['welcome', 'home', 'shimon']
dict = mapping_func(sequence)
print(dict['welcome'])
print(dict['home'])
print(dict['shimon'])
While the output of this code is:
1
2
3
I need this option in order to zero padding sequences and if the value 0 belongs to a key it might (and probably will) lead to faulty results.