A computer readable medium, being stored a program for causing an electronic apparatus to execute a named entity marking method when the program is loaded into the electronic apparatus, the electronic apparatus comprising a processor and a storage unit, the processor being electrically connected to the storage unit, the storage unit having an electronic document and a named entity database stored therein, the named entity database comprising a plurality of named entities, each of the named entities corresponding to at least one category, the program comprising:
- a code A for enabling the processor to mark the electronic document into a first marked document according to a first set of the named entity database so that the first marked document has a plurality of marked named entities, each of the marked named entities being one of the named entities comprised in the first set;
- a code B for enabling the processor to determine at least one first selected category according to the categories corresponding to the marked named entities, and define a second set of the named entity database according to the at least one first selected category;
- and
- a code C is for enabling the processor to re-mark the electronic document into a second marked document according to the second set.