en/AdvancedNlpCourse2017/InformationExtraction: jobtitle.jape

File jobtitle.jape, 322 bytes (added by Ales Horak, 2 years ago)
Line 
1Phase: Jobtitle 
2Input: Lookup Person
3Options: control = appelt debug = true 
4 
5Rule: Jobtitle1 
6
7 {Lookup.majorType == jobtitle, !Lookup.majorType == organization} 
8 ( 
9    {Lookup.majorType == jobtitle, !Lookup.majorType == organization} 
10 )? 
11
12:jobtitle 
13--> 
14 :jobtitle.JobTitle = {rule = "JobTitle1"}