A language processing method is provided comprising forming a feature from at least one word from an input sequence of words; generating an address of a memory cell storing a weight for the feature based on a hash function using the feature as argument; retrieving the weight for the feature from the memory cell with the address; and generating a dependency tree for the input sequence based on the weight and a second order dependency parsing algorithm. A corresponding electronic device is provided as well.