Research Article

Persian Named Entity Recognition by Gray Wolf Optimization Algorithm

Algorithm 2

Fitness calculation.
input: : set of segments for a postextracted from GWV
: The maximum length of a segment
: penalty for the segments with more than u words
output: Fitness for each vector
(1)
(2)foreach segment in do
(3)if len(segment) u then
(4)
(5)else
(6)segmentFitness calculate fitness for the segment using equation (1)
(7)
(8)return fitness