1. A method of geometrically encoding data, the method being performed by circuitry included in a computing device, the method comprising: generating, based on a plurality of semantic classes, a subspace formed by a first data element and a second data element, the first data element being included in a first number of semantic classes, and the second data element being included in a second number of semantic classes; encoding by circuitry, the first data element with respect to the second data element such that the generated subspace formed by the first data element and the second data element is orthogonal, the encoding being performed by computing one of a left contraction and a right contraction of a first set that includes the first data element with respect to a second set that includes the second data element; computing by circuitry, a weight distribution of the first data element with respect to the second data element, the weight distribution being performed for each of the first number of semantic classes with respect to the second number of semantic classes; and determining a dominant semantic class corresponding to an ordered sequence of the first data element and the second data element, the dominant semantic class having a maximum weight distribution.