Closed KaisongHuang closed 6 years ago
Put additional NER rules into regexner.txt whose path is hard-coded. The simplest rule file has two tab-separated fields on a line.
Bachelor of Arts DEGREE Bachelor of Laws DEGREE
Let's say we have an input file with the following sentence.
She graduated from the University of Melbourne with a Bachelor of Arts and a Bachelor of Laws in 1986.
Use annotator "ner" we get the following output.
(She,O) (graduated,O) (from,O) (the,O) (University,ORGANIZATION) (of,ORGANIZATION) (Melbourne,ORGANIZATION) (with,O) (a,O) (Bachelor,TITLE) (of,O) (Arts,O) (and,O) (a,O) (Bachelor,TITLE) (of,O) (Laws,O) (in,O) (1986,DATE) (.,O)
Use annotator "regexner" we get the following output.
(She,O) (graduated,O) (from,O) (the,O) (University,ORGANIZATION) (of,ORGANIZATION) (Melbourne,ORGANIZATION) (with,O) (a,O) (Bachelor,DEGREE) (of,DEGREE) (Arts,DEGREE) (and,O) (a,O) (Bachelor,DEGREE) (of,DEGREE) (Laws,DEGREE) (in,O) (1986,DATE) (.,O)
Put additional NER rules into regexner.txt whose path is hard-coded. The simplest rule file has two tab-separated fields on a line.
Let's say we have an input file with the following sentence.
Use annotator "ner" we get the following output.
Use annotator "regexner" we get the following output.