Research Article
[Retracted] Application of Thematic Context-Based Deep Learning in Foreign Language Teaching
Algorithm 2
Genetic algorithm-based word sentiment value calculation.
Input: | //ELT corpus, ELT topic collection, ELT topic word collection | Output: | /minimum variance individual (optimal sentiment value of topic word set words) | (1) | //Randomly generated populations P | (2) | for j = 1 to MAX do//MAX is the maximum number of iterations | (3) | for ch = 1 to M do//traverse the population | (4) | fit ← fitness (ch)//calculate individual fitness | (5) | fitness.append (fit)//save fitness | (6) | end for | (7) | new_p ← select(P, fitness)//select operation | (8) | new_p ← cross(new_p)//cross operation | (9) | new_p ← mutation (new_p)//mutation operation | (10) | p ← new_p//new population P | (11) | end for | (12) | //Minimum variance individual | (13) | //Return the minimum variance individual |
|