-
Notifications
You must be signed in to change notification settings - Fork 146
Deprecated old gazetter View Generator. Also incremented minor version number. #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9c3d1c4
5bd6665
1c8a1d7
917fa66
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,17 +191,17 @@ public final void testFeatureCollection() throws Exception { | |
} | ||
} | ||
} | ||
|
||
public final void testGazetteerFeatures() throws Exception { | ||
System.out.println("\tTesting gazetteer features"); | ||
WordFeatureExtractor fex = | ||
WordFeatureExtractorFactory.getGazetteerFeatureExtractor("gazetteer", | ||
new GazetteerViewGenerator("gazetteers", ViewNames.GAZETTEER)); | ||
|
||
for (TextAnnotation ta : tas) { | ||
runTest(ta, fex); | ||
} | ||
} | ||
// Not needed anymore, as test of SimpleGazetteerAnnotator in SimpleGazetteerAnnotatorTest.java suffice. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think they are testing slightly different things. The test for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I dont know why Vivek did not separate the test class, but it is reasonable. After all, gazetteers are used for features right? The tests are checking the same feature, just the organization of the test code is different. |
||
// public final void testGazetteerFeatures() throws Exception { | ||
// System.out.println("\tTesting gazetteer features"); | ||
// WordFeatureExtractor fex = | ||
// WordFeatureExtractorFactory.getGazetteerFeatureExtractor("gazetteer", | ||
// new GazetteerViewGenerator("gazetteers", ViewNames.GAZETTEER)); | ||
// | ||
// for (TextAnnotation ta : tas) { | ||
// runTest(ta, fex); | ||
// } | ||
// } | ||
|
||
private void runTest(TextAnnotation ta, WordFeatureExtractor fex) throws EdisonException { | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment that "instead of this you should use
SimpleGazetteerAnnotator
"?