Research Article
Device-Oriented Automatic Semantic Annotation in IoT
Algorithm 1
Annotation dictionary generating algorithm.
Input: | Non-function description training set: The format of each element in training set is (Pref, Inter, WorkCond) and | contains three components, i.e., Pref, Inter and WorkCond, respectively meaning the content about the performance, | interface and working condition of our device description framework. | Output: | A dictionary that contains three sub-dictionaries as shown in Figure 4. | A word frequency dictionary that has the same structure as . | Step 1. For each component that can be Pref, Inter and WorkCond in : | segment word and obtain a word sequence . | For each in : | If is not in , add to and add 1 to | Else find the position of in , marked as . Then, set . | Step 2. Obtain a dictionary and | Return: and |
|