abstractor 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.md +14 -0
- data/Rakefile +33 -0
- data/app/assets/images/abstractor/add.png +0 -0
- data/app/assets/images/abstractor/ajax-loader.gif +0 -0
- data/app/assets/images/abstractor/bar.gif +0 -0
- data/app/assets/images/abstractor/bti_logo.jpg +0 -0
- data/app/assets/images/abstractor/bullet_arrow_down.png +0 -0
- data/app/assets/images/abstractor/bullet_arrow_up.png +0 -0
- data/app/assets/images/abstractor/cog.png +0 -0
- data/app/assets/images/abstractor/delete.png +0 -0
- data/app/assets/images/abstractor/edit.png +0 -0
- data/app/assets/images/abstractor/excel.png +0 -0
- data/app/assets/images/abstractor/favicon.ico +0 -0
- data/app/assets/images/abstractor/greencheck.gif +0 -0
- data/app/assets/images/abstractor/loading.gif +0 -0
- data/app/assets/images/abstractor/nu_logo.jpg +0 -0
- data/app/assets/images/abstractor/nubic_logo.png +0 -0
- data/app/assets/images/abstractor/page.png +0 -0
- data/app/assets/images/abstractor/rails.png +0 -0
- data/app/assets/images/abstractor/robert_h_lurie.jpg +0 -0
- data/app/assets/images/abstractor/show.png +0 -0
- data/app/assets/images/abstractor/switch_minus.gif +0 -0
- data/app/assets/images/abstractor/switch_plus.gif +0 -0
- data/app/assets/javascripts/abstractor/abstractor.js +89 -0
- data/app/assets/javascripts/abstractor/application.js +21 -0
- data/app/assets/javascripts/abstractor/combobox.js +301 -0
- data/app/assets/javascripts/abstractor/jquery/jquery.form.js +1074 -0
- data/app/assets/javascripts/abstractor/nested_attributes.js +69 -0
- data/app/assets/stylesheets/abstractor/abstractor_abstractions.css +312 -0
- data/app/assets/stylesheets/abstractor/application.css +21 -0
- data/app/assets/stylesheets/abstractor/jquery.ui.override.css.scss +73 -0
- data/app/controllers/abstractor/abstractor_abstraction_groups_controller.rb +5 -0
- data/app/controllers/abstractor/abstractor_abstractions_controller.rb +5 -0
- data/app/controllers/abstractor/abstractor_suggestions_controller.rb +5 -0
- data/app/controllers/abstractor/application_controller.rb +2 -0
- data/app/helpers/abstractor/application_helper.rb +4 -0
- data/app/models/abstractor/abstractor_abstraction.rb +6 -0
- data/app/models/abstractor/abstractor_abstraction_group.rb +6 -0
- data/app/models/abstractor/abstractor_abstraction_group_member.rb +6 -0
- data/app/models/abstractor/abstractor_abstraction_schema.rb +6 -0
- data/app/models/abstractor/abstractor_abstraction_schema_object_value.rb +6 -0
- data/app/models/abstractor/abstractor_abstraction_schema_predicate_variant.rb +6 -0
- data/app/models/abstractor/abstractor_abstraction_schema_relation.rb +6 -0
- data/app/models/abstractor/abstractor_abstraction_source.rb +6 -0
- data/app/models/abstractor/abstractor_object_type.rb +6 -0
- data/app/models/abstractor/abstractor_object_value.rb +6 -0
- data/app/models/abstractor/abstractor_object_value_variant.rb +6 -0
- data/app/models/abstractor/abstractor_relation_type.rb +6 -0
- data/app/models/abstractor/abstractor_rule_type.rb +6 -0
- data/app/models/abstractor/abstractor_subject.rb +6 -0
- data/app/models/abstractor/abstractor_subject_group.rb +6 -0
- data/app/models/abstractor/abstractor_subject_group_member.rb +6 -0
- data/app/models/abstractor/abstractor_subject_relation.rb +6 -0
- data/app/models/abstractor/abstractor_suggestion.rb +6 -0
- data/app/models/abstractor/abstractor_suggestion_object_value.rb +6 -0
- data/app/models/abstractor/abstractor_suggestion_source.rb +6 -0
- data/app/models/abstractor/abstractor_suggestion_status.rb +6 -0
- data/app/views/abstractor/abstractor_abstraction_groups/_form.html.haml +10 -0
- data/app/views/abstractor/abstractor_abstraction_groups/edit.html.haml +1 -0
- data/app/views/abstractor/abstractor_abstractions/_fields.html.haml +63 -0
- data/app/views/abstractor/abstractor_abstractions/_list.html.haml +45 -0
- data/app/views/abstractor/abstractor_abstractions/edit.html.haml +53 -0
- data/app/views/abstractor/abstractor_abstractions/show.html.haml +1 -0
- data/app/views/abstractor/shared/_error_messages.html.haml +5 -0
- data/config/cucumber.yml +8 -0
- data/config/routes.rb +7 -0
- data/db/migrate/20131227205140_create_abstractor_object_types.rb +10 -0
- data/db/migrate/20131227205219_create_abstractor_object_values.rb +10 -0
- data/db/migrate/20131227205256_create_abstractor_object_value_variants.rb +11 -0
- data/db/migrate/20131227205320_create_abstractor_relation_types.rb +10 -0
- data/db/migrate/20131227205354_create_abstractor_rule_types.rb +11 -0
- data/db/migrate/20131227205432_create_abstractor_abstraction_schemas.rb +13 -0
- data/db/migrate/20131227205456_create_abstractor_abstraction_schema_object_values.rb +10 -0
- data/db/migrate/20131227205529_create_abstractor_abstraction_schema_predicate_variants.rb +11 -0
- data/db/migrate/20131227205610_create_abstractor_abstraction_schema_relations.rb +11 -0
- data/db/migrate/20131227205652_create_abstractor_subjects.rb +12 -0
- data/db/migrate/20131227205732_create_abstractor_subject_relations.rb +11 -0
- data/db/migrate/20131227205831_create_abstractor_abstraction_sources.rb +11 -0
- data/db/migrate/20131227210211_create_abstractor_subject_groups.rb +10 -0
- data/db/migrate/20131227210244_create_abstractor_subject_group_members.rb +11 -0
- data/db/migrate/20131227210350_create_abstractor_abstraction_groups.rb +12 -0
- data/db/migrate/20131227210353_create_abstractor_abstraction_group_members.rb +11 -0
- data/db/migrate/20131227211050_create_abstractor_suggestion_statuses.rb +10 -0
- data/db/migrate/20131227211303_create_abstractor_abstractions.rb +15 -0
- data/db/migrate/20131227213427_create_abstractor_suggestions.rb +14 -0
- data/db/migrate/20131228041944_create_abstractor_suggestion_object_values.rb +11 -0
- data/db/migrate/20131228041945_create_abstractor_suggestion_sources.rb +16 -0
- data/db/seeds.rb +0 -0
- data/lib/abstractor.rb +8 -0
- data/lib/abstractor/abstractable.rb +190 -0
- data/lib/abstractor/core_ext/string.rb +99 -0
- data/lib/abstractor/engine.rb +14 -0
- data/lib/abstractor/methods/controllers/abstractor_abstraction_groups_controller.rb +37 -0
- data/lib/abstractor/methods/controllers/abstractor_abstractions_controller.rb +42 -0
- data/lib/abstractor/methods/controllers/abstractor_suggestions_controller.rb +28 -0
- data/lib/abstractor/methods/models/abstractor_abstraction.rb +65 -0
- data/lib/abstractor/methods/models/abstractor_abstraction_group.rb +37 -0
- data/lib/abstractor/methods/models/abstractor_abstraction_group_member.rb +17 -0
- data/lib/abstractor/methods/models/abstractor_abstraction_schema.rb +27 -0
- data/lib/abstractor/methods/models/abstractor_abstraction_schema_object_value.rb +17 -0
- data/lib/abstractor/methods/models/abstractor_abstraction_schema_predicate_variant.rb +16 -0
- data/lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb +18 -0
- data/lib/abstractor/methods/models/abstractor_abstraction_source.rb +29 -0
- data/lib/abstractor/methods/models/abstractor_object_type.rb +16 -0
- data/lib/abstractor/methods/models/abstractor_object_value.rb +24 -0
- data/lib/abstractor/methods/models/abstractor_object_value_variant.rb +16 -0
- data/lib/abstractor/methods/models/abstractor_relation_type.rb +16 -0
- data/lib/abstractor/methods/models/abstractor_rule_type.rb +17 -0
- data/lib/abstractor/methods/models/abstractor_subject.rb +258 -0
- data/lib/abstractor/methods/models/abstractor_subject_group.rb +19 -0
- data/lib/abstractor/methods/models/abstractor_subject_group_member.rb +17 -0
- data/lib/abstractor/methods/models/abstractor_subject_relation.rb +18 -0
- data/lib/abstractor/methods/models/abstractor_suggestion.rb +88 -0
- data/lib/abstractor/methods/models/abstractor_suggestion_object_value.rb +17 -0
- data/lib/abstractor/methods/models/abstractor_suggestion_source.rb +17 -0
- data/lib/abstractor/methods/models/abstractor_suggestion_status.rb +29 -0
- data/lib/abstractor/methods/models/soft_delete.rb +35 -0
- data/lib/abstractor/negation_detection.rb +43 -0
- data/lib/abstractor/parser.rb +76 -0
- data/lib/abstractor/setup.rb +24 -0
- data/lib/abstractor/user_interface.rb +40 -0
- data/lib/abstractor/utility.rb +8 -0
- data/lib/abstractor/version.rb +3 -0
- data/lib/generators/abstractor/install/install_generator.rb +118 -0
- data/lib/generators/abstractor/install/templates/controllers/abstractor_abstraction_groups_controller.rb +16 -0
- data/lib/generators/abstractor/install/templates/controllers/abstractor_abstractions_controller.rb +24 -0
- data/lib/generators/abstractor/install/templates/controllers/abstractor_suggestions_controller.rb +12 -0
- data/lib/generators/abstractor/install/templates/dictionaries.yml +235 -0
- data/lib/generators/abstractor/install/templates/helpers/abstractions_helper.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_abstraction.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_group.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_group_member.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_schema.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_schema_object_value.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_schema_predicate_variant.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_schema_relation.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_abstraction_source.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_object_type.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_object_value.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_object_value_variant.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_relation_type.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_rule_type.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_subject.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_subject_group.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_subject_group_member.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_subject_relation.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_suggestion.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_suggestion_object_value.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_suggestion_source.rb +9 -0
- data/lib/generators/abstractor/install/templates/models/abstractor_suggestion_status.rb +9 -0
- data/lib/lingscope/build.xml +74 -0
- data/lib/lingscope/build/built-jar.properties +4 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/AbnerTokenizer.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/AnnotationComparer.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/Annotator.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/BaselineAnnotator.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/BaselineCueAnnotator.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/BaselineScopeAnnotator.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/CrfAnnotator.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/NegexAnnotator.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/NegexCueAnnotator.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/NegexScopeAnnotator.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/PosTagger.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/negex/GenNegEx.class +0 -0
- data/lib/lingscope/build/classes/lingscope/algorithms/negex/Sorter.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/AnnotatedFilesMerger.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/AnnotationComparerDriver.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/BaselineDriver.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/CrfDriver.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/CueAndPosFilesMerger.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/ModelTrainer.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/NegexDriver.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/PosTaggerDriver.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/SentencePosTagger.class +0 -0
- data/lib/lingscope/build/classes/lingscope/drivers/SentenceTagger.class +0 -0
- data/lib/lingscope/build/classes/lingscope/io/AnnotatedSentencesIO.class +0 -0
- data/lib/lingscope/build/classes/lingscope/structures/AnnotatedSentence.class +0 -0
- data/lib/lingscope/dist/README.TXT +32 -0
- data/lib/lingscope/dist/javadoc/allclasses-frame.html +80 -0
- data/lib/lingscope/dist/javadoc/allclasses-noframe.html +80 -0
- data/lib/lingscope/dist/javadoc/constant-values.html +199 -0
- data/lib/lingscope/dist/javadoc/deprecated-list.html +147 -0
- data/lib/lingscope/dist/javadoc/help-doc.html +224 -0
- data/lib/lingscope/dist/javadoc/index-files/index-1.html +188 -0
- data/lib/lingscope/dist/javadoc/index-files/index-10.html +149 -0
- data/lib/lingscope/dist/javadoc/index-files/index-11.html +158 -0
- data/lib/lingscope/dist/javadoc/index-files/index-12.html +157 -0
- data/lib/lingscope/dist/javadoc/index-files/index-13.html +177 -0
- data/lib/lingscope/dist/javadoc/index-files/index-14.html +155 -0
- data/lib/lingscope/dist/javadoc/index-files/index-15.html +152 -0
- data/lib/lingscope/dist/javadoc/index-files/index-16.html +146 -0
- data/lib/lingscope/dist/javadoc/index-files/index-2.html +158 -0
- data/lib/lingscope/dist/javadoc/index-files/index-3.html +165 -0
- data/lib/lingscope/dist/javadoc/index-files/index-4.html +146 -0
- data/lib/lingscope/dist/javadoc/index-files/index-5.html +219 -0
- data/lib/lingscope/dist/javadoc/index-files/index-6.html +149 -0
- data/lib/lingscope/dist/javadoc/index-files/index-7.html +155 -0
- data/lib/lingscope/dist/javadoc/index-files/index-8.html +185 -0
- data/lib/lingscope/dist/javadoc/index-files/index-9.html +164 -0
- data/lib/lingscope/dist/javadoc/index.html +74 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/AbnerTokenizer.html +280 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/AnnotationComparer.html +526 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/Annotator.html +401 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/BaselineAnnotator.html +375 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/BaselineCueAnnotator.html +309 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/BaselineScopeAnnotator.html +340 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/CrfAnnotator.html +340 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/NegexAnnotator.html +364 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/NegexCueAnnotator.html +309 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/NegexScopeAnnotator.html +309 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/PosTagger.html +268 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/AbnerTokenizer.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/AnnotationComparer.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/Annotator.html +299 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/BaselineAnnotator.html +189 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/BaselineCueAnnotator.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/BaselineScopeAnnotator.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/CrfAnnotator.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/NegexAnnotator.html +189 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/NegexCueAnnotator.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/NegexScopeAnnotator.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/class-use/PosTagger.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/GenNegEx.html +369 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/Sorter.html +253 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/class-use/GenNegEx.html +181 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/class-use/Sorter.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/package-frame.html +35 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/package-summary.html +165 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/package-tree.html +154 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/negex/package-use.html +174 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/package-frame.html +53 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/package-summary.html +198 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/package-tree.html +160 -0
- data/lib/lingscope/dist/javadoc/lingscope/algorithms/package-use.html +202 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/AnnotatedFilesMerger.html +284 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/AnnotationComparerDriver.html +258 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/BaselineDriver.html +260 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/CrfDriver.html +262 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/CueAndPosFilesMerger.html +310 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/ModelTrainer.html +281 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/NegexDriver.html +262 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/PosTaggerDriver.html +289 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/SentencePosTagger.html +313 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/SentenceTagger.html +512 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/AnnotatedFilesMerger.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/AnnotationComparerDriver.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/BaselineDriver.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/CrfDriver.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/CueAndPosFilesMerger.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/ModelTrainer.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/NegexDriver.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/PosTaggerDriver.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/SentencePosTagger.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/class-use/SentenceTagger.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/package-frame.html +51 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/package-summary.html +195 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/package-tree.html +154 -0
- data/lib/lingscope/dist/javadoc/lingscope/drivers/package-use.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/io/AnnotatedSentencesIO.html +285 -0
- data/lib/lingscope/dist/javadoc/lingscope/io/class-use/AnnotatedSentencesIO.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/io/package-frame.html +33 -0
- data/lib/lingscope/dist/javadoc/lingscope/io/package-summary.html +158 -0
- data/lib/lingscope/dist/javadoc/lingscope/io/package-tree.html +154 -0
- data/lib/lingscope/dist/javadoc/lingscope/io/package-use.html +145 -0
- data/lib/lingscope/dist/javadoc/lingscope/structures/AnnotatedSentence.html +425 -0
- data/lib/lingscope/dist/javadoc/lingscope/structures/class-use/AnnotatedSentence.html +423 -0
- data/lib/lingscope/dist/javadoc/lingscope/structures/package-frame.html +33 -0
- data/lib/lingscope/dist/javadoc/lingscope/structures/package-summary.html +158 -0
- data/lib/lingscope/dist/javadoc/lingscope/structures/package-tree.html +154 -0
- data/lib/lingscope/dist/javadoc/lingscope/structures/package-use.html +209 -0
- data/lib/lingscope/dist/javadoc/overview-frame.html +51 -0
- data/lib/lingscope/dist/javadoc/overview-summary.html +168 -0
- data/lib/lingscope/dist/javadoc/overview-tree.html +159 -0
- data/lib/lingscope/dist/javadoc/package-list +5 -0
- data/lib/lingscope/dist/javadoc/resources/inherit.gif +0 -0
- data/lib/lingscope/dist/javadoc/stylesheet.css +29 -0
- data/lib/lingscope/dist/lib/abner.jar +0 -0
- data/lib/lingscope/dist/lib/commons-lang-2.4.jar +0 -0
- data/lib/lingscope/dist/lib/java_utils.jar +0 -0
- data/lib/lingscope/dist/lib/sptoolkit.jar +0 -0
- data/lib/lingscope/dist/lib/stanford-postagger.jar +0 -0
- data/lib/lingscope/dist/lingscope.jar +0 -0
- data/lib/lingscope/lingscope.zip +0 -0
- data/lib/lingscope/manifest.mf +3 -0
- data/lib/lingscope/nbproject/build-impl.xml +1338 -0
- data/lib/lingscope/nbproject/genfiles.properties +8 -0
- data/lib/lingscope/nbproject/private/config.properties +0 -0
- data/lib/lingscope/nbproject/private/private.properties +10 -0
- data/lib/lingscope/nbproject/private/private.xml +5 -0
- data/lib/lingscope/nbproject/project.properties +85 -0
- data/lib/lingscope/nbproject/project.xml +15 -0
- data/lib/lingscope/negation_models.zip +0 -0
- data/lib/lingscope/negation_models/baseline_cue_all_both.model +49 -0
- data/lib/lingscope/negation_models/baseline_cue_all_clinical.model +19 -0
- data/lib/lingscope/negation_models/crf_cue_all_both.model +0 -0
- data/lib/lingscope/negation_models/crf_cue_all_clinical.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_cue_crf_all_both.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_cue_crf_all_clinical.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_cue_regex_all_both.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_cue_regex_all_clinical.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_words_all_both.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_words_all_clinical.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_words_crf_all_both.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_words_crf_all_clinical.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_words_regex_all_both.model +0 -0
- data/lib/lingscope/negation_models/crf_scope_words_regex_all_clinical.model +0 -0
- data/lib/lingscope/src/lingscope/algorithms/AbnerTokenizer.java +58 -0
- data/lib/lingscope/src/lingscope/algorithms/AnnotationComparer.java +207 -0
- data/lib/lingscope/src/lingscope/algorithms/Annotator.java +51 -0
- data/lib/lingscope/src/lingscope/algorithms/BaselineAnnotator.java +80 -0
- data/lib/lingscope/src/lingscope/algorithms/BaselineCueAnnotator.java +84 -0
- data/lib/lingscope/src/lingscope/algorithms/BaselineScopeAnnotator.java +101 -0
- data/lib/lingscope/src/lingscope/algorithms/CrfAnnotator.java +45 -0
- data/lib/lingscope/src/lingscope/algorithms/NegexAnnotator.java +52 -0
- data/lib/lingscope/src/lingscope/algorithms/NegexCueAnnotator.java +26 -0
- data/lib/lingscope/src/lingscope/algorithms/NegexScopeAnnotator.java +26 -0
- data/lib/lingscope/src/lingscope/algorithms/PosTagger.java +54 -0
- data/lib/lingscope/src/lingscope/algorithms/negex/GenNegEx.java +530 -0
- data/lib/lingscope/src/lingscope/algorithms/negex/Sorter.java +36 -0
- data/lib/lingscope/src/lingscope/drivers/AnnotatedFilesMerger.java +61 -0
- data/lib/lingscope/src/lingscope/drivers/AnnotationComparerDriver.java +22 -0
- data/lib/lingscope/src/lingscope/drivers/BaselineDriver.java +45 -0
- data/lib/lingscope/src/lingscope/drivers/CrfDriver.java +31 -0
- data/lib/lingscope/src/lingscope/drivers/CueAndPosFilesMerger.java +86 -0
- data/lib/lingscope/src/lingscope/drivers/ModelTrainer.java +39 -0
- data/lib/lingscope/src/lingscope/drivers/NegexDriver.java +32 -0
- data/lib/lingscope/src/lingscope/drivers/PosTaggerDriver.java +62 -0
- data/lib/lingscope/src/lingscope/drivers/SentencePosTagger.java +89 -0
- data/lib/lingscope/src/lingscope/drivers/SentenceTagger.java +158 -0
- data/lib/lingscope/src/lingscope/io/AnnotatedSentencesIO.java +53 -0
- data/lib/lingscope/src/lingscope/structures/AnnotatedSentence.java +105 -0
- data/lib/setup/data/ICD-O-3_CSV-metadata/Morphenglish.csv +1 -0
- data/lib/setup/data/ICD-O-3_CSV-metadata/Morphenglish.txt +2273 -0
- data/lib/setup/data/ICD-O-3_CSV-metadata/Topoenglish.csv +1 -0
- data/lib/setup/data/ICD-O-3_CSV-metadata/Topoenglish.txt +1342 -0
- data/lib/setup/data/ICD-O-3_CSV-metadata/icd-o3 readme.txt +21 -0
- data/lib/setup/data/custom_site_synonyms.csv +1 -0
- data/lib/setup/data/diagnosis_categorizations.csv +1 -0
- data/lib/setup/data/high_level_primary_cns_diagnosis_categorizations.yml +597 -0
- data/lib/setup/data/icdo3_sites_with_laterality.txt +11 -0
- data/lib/setup/data/site_site_categories.txt +28 -0
- data/lib/tasks/abstractor_tasks.rake +22 -0
- data/lib/tasks/cucumber.rake +65 -0
- metadata +754 -0
@@ -0,0 +1,74 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
2
|
+
<!--NewPage-->
|
3
|
+
<HTML>
|
4
|
+
<HEAD>
|
5
|
+
<!-- Generated by javadoc on Tue Feb 18 19:45:41 CST 2014-->
|
6
|
+
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
7
|
+
<TITLE>
|
8
|
+
Generated Documentation (Untitled)
|
9
|
+
</TITLE>
|
10
|
+
<SCRIPT type="text/javascript">
|
11
|
+
targetPage = "" + window.location.search;
|
12
|
+
if (targetPage != "" && targetPage != "undefined")
|
13
|
+
targetPage = targetPage.substring(1);
|
14
|
+
if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
|
15
|
+
targetPage = "undefined";
|
16
|
+
function validURL(url) {
|
17
|
+
var pos = url.indexOf(".html");
|
18
|
+
if (pos == -1 || pos != url.length - 5)
|
19
|
+
return false;
|
20
|
+
var allowNumber = false;
|
21
|
+
var allowSep = false;
|
22
|
+
var seenDot = false;
|
23
|
+
for (var i = 0; i < url.length - 5; i++) {
|
24
|
+
var ch = url.charAt(i);
|
25
|
+
if ('a' <= ch && ch <= 'z' ||
|
26
|
+
'A' <= ch && ch <= 'Z' ||
|
27
|
+
ch == '$' ||
|
28
|
+
ch == '_') {
|
29
|
+
allowNumber = true;
|
30
|
+
allowSep = true;
|
31
|
+
} else if ('0' <= ch && ch <= '9'
|
32
|
+
|| ch == '-') {
|
33
|
+
if (!allowNumber)
|
34
|
+
return false;
|
35
|
+
} else if (ch == '/' || ch == '.') {
|
36
|
+
if (!allowSep)
|
37
|
+
return false;
|
38
|
+
allowNumber = false;
|
39
|
+
allowSep = false;
|
40
|
+
if (ch == '.')
|
41
|
+
seenDot = true;
|
42
|
+
if (ch == '/' && seenDot)
|
43
|
+
return false;
|
44
|
+
} else {
|
45
|
+
return false;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
return true;
|
49
|
+
}
|
50
|
+
function loadFrames() {
|
51
|
+
if (targetPage != "" && targetPage != "undefined")
|
52
|
+
top.classFrame.location = top.targetPage;
|
53
|
+
}
|
54
|
+
</SCRIPT>
|
55
|
+
<NOSCRIPT>
|
56
|
+
</NOSCRIPT>
|
57
|
+
</HEAD>
|
58
|
+
<FRAMESET cols="20%,80%" title="" onLoad="top.loadFrames()">
|
59
|
+
<FRAMESET rows="30%,70%" title="" onLoad="top.loadFrames()">
|
60
|
+
<FRAME src="overview-frame.html" name="packageListFrame" title="All Packages">
|
61
|
+
<FRAME src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
|
62
|
+
</FRAMESET>
|
63
|
+
<FRAME src="overview-summary.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">
|
64
|
+
<NOFRAMES>
|
65
|
+
<H2>
|
66
|
+
Frame Alert</H2>
|
67
|
+
|
68
|
+
<P>
|
69
|
+
This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
|
70
|
+
<BR>
|
71
|
+
Link to<A HREF="overview-summary.html">Non-frame version.</A>
|
72
|
+
</NOFRAMES>
|
73
|
+
</FRAMESET>
|
74
|
+
</HTML>
|
@@ -0,0 +1,280 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<!--NewPage-->
|
3
|
+
<HTML>
|
4
|
+
<HEAD>
|
5
|
+
<!-- Generated by javadoc (build 1.6.0_65) on Tue Feb 18 19:45:41 CST 2014 -->
|
6
|
+
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
7
|
+
<TITLE>
|
8
|
+
AbnerTokenizer
|
9
|
+
</TITLE>
|
10
|
+
|
11
|
+
<META NAME="date" CONTENT="2014-02-18">
|
12
|
+
|
13
|
+
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
|
14
|
+
|
15
|
+
<SCRIPT type="text/javascript">
|
16
|
+
function windowTitle()
|
17
|
+
{
|
18
|
+
if (location.href.indexOf('is-external=true') == -1) {
|
19
|
+
parent.document.title="AbnerTokenizer";
|
20
|
+
}
|
21
|
+
}
|
22
|
+
</SCRIPT>
|
23
|
+
<NOSCRIPT>
|
24
|
+
</NOSCRIPT>
|
25
|
+
|
26
|
+
</HEAD>
|
27
|
+
|
28
|
+
<BODY BGCOLOR="white" onload="windowTitle();">
|
29
|
+
<HR>
|
30
|
+
|
31
|
+
|
32
|
+
<!-- ========= START OF TOP NAVBAR ======= -->
|
33
|
+
<A NAME="navbar_top"><!-- --></A>
|
34
|
+
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
35
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
36
|
+
<TR>
|
37
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
38
|
+
<A NAME="navbar_top_firstrow"><!-- --></A>
|
39
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
40
|
+
<TR ALIGN="center" VALIGN="top">
|
41
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
42
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
43
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
44
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbnerTokenizer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
45
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
46
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
47
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
48
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
49
|
+
</TR>
|
50
|
+
</TABLE>
|
51
|
+
</TD>
|
52
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
53
|
+
</EM>
|
54
|
+
</TD>
|
55
|
+
</TR>
|
56
|
+
|
57
|
+
<TR>
|
58
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
59
|
+
PREV CLASS
|
60
|
+
<A HREF="../../lingscope/algorithms/AnnotationComparer.html" title="class in lingscope.algorithms"><B>NEXT CLASS</B></A></FONT></TD>
|
61
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
62
|
+
<A HREF="../../index.html?lingscope/algorithms/AbnerTokenizer.html" target="_top"><B>FRAMES</B></A>
|
63
|
+
<A HREF="AbnerTokenizer.html" target="_top"><B>NO FRAMES</B></A>
|
64
|
+
<SCRIPT type="text/javascript">
|
65
|
+
<!--
|
66
|
+
if(window==top) {
|
67
|
+
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
|
68
|
+
}
|
69
|
+
//-->
|
70
|
+
</SCRIPT>
|
71
|
+
<NOSCRIPT>
|
72
|
+
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
|
73
|
+
</NOSCRIPT>
|
74
|
+
|
75
|
+
|
76
|
+
</FONT></TD>
|
77
|
+
</TR>
|
78
|
+
<TR>
|
79
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
80
|
+
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
81
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
82
|
+
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
83
|
+
</TR>
|
84
|
+
</TABLE>
|
85
|
+
<A NAME="skip-navbar_top"></A>
|
86
|
+
<!-- ========= END OF TOP NAVBAR ========= -->
|
87
|
+
|
88
|
+
<HR>
|
89
|
+
<!-- ======== START OF CLASS DATA ======== -->
|
90
|
+
<H2>
|
91
|
+
<FONT SIZE="-1">
|
92
|
+
lingscope.algorithms</FONT>
|
93
|
+
<BR>
|
94
|
+
Class AbnerTokenizer</H2>
|
95
|
+
<PRE>
|
96
|
+
java.lang.Object
|
97
|
+
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>lingscope.algorithms.AbnerTokenizer</B>
|
98
|
+
</PRE>
|
99
|
+
<HR>
|
100
|
+
<DL>
|
101
|
+
<DT><PRE>public class <B>AbnerTokenizer</B><DT>extends java.lang.Object</DL>
|
102
|
+
</PRE>
|
103
|
+
|
104
|
+
<P>
|
105
|
+
<HR>
|
106
|
+
|
107
|
+
<P>
|
108
|
+
|
109
|
+
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
110
|
+
|
111
|
+
<A NAME="constructor_summary"><!-- --></A>
|
112
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
113
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
114
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
115
|
+
<B>Constructor Summary</B></FONT></TH>
|
116
|
+
</TR>
|
117
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
118
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AbnerTokenizer.html#AbnerTokenizer()">AbnerTokenizer</A></B>()</CODE>
|
119
|
+
|
120
|
+
<BR>
|
121
|
+
</TD>
|
122
|
+
</TR>
|
123
|
+
</TABLE>
|
124
|
+
|
125
|
+
<!-- ========== METHOD SUMMARY =========== -->
|
126
|
+
|
127
|
+
<A NAME="method_summary"><!-- --></A>
|
128
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
129
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
130
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
131
|
+
<B>Method Summary</B></FONT></TH>
|
132
|
+
</TR>
|
133
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
134
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
135
|
+
<CODE>static java.lang.String</CODE></FONT></TD>
|
136
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AbnerTokenizer.html#splitTermsByPunctuation(java.lang.String)">splitTermsByPunctuation</A></B>(java.lang.String input)</CODE>
|
137
|
+
|
138
|
+
<BR>
|
139
|
+
Takes an input and splits the sentence by punctuations and spaces, then
|
140
|
+
stitches it back together with a space and returns</TD>
|
141
|
+
</TR>
|
142
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
143
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
144
|
+
<CODE>static java.lang.String</CODE></FONT></TD>
|
145
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AbnerTokenizer.html#tokenize(java.lang.String)">tokenize</A></B>(java.lang.String s)</CODE>
|
146
|
+
|
147
|
+
<BR>
|
148
|
+
Take raw text apply ABNER's built-in tokenization on it.</TD>
|
149
|
+
</TR>
|
150
|
+
</TABLE>
|
151
|
+
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
152
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
153
|
+
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
154
|
+
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
155
|
+
</TR>
|
156
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
157
|
+
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
158
|
+
</TR>
|
159
|
+
</TABLE>
|
160
|
+
|
161
|
+
<P>
|
162
|
+
|
163
|
+
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
164
|
+
|
165
|
+
<A NAME="constructor_detail"><!-- --></A>
|
166
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
167
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
168
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
169
|
+
<B>Constructor Detail</B></FONT></TH>
|
170
|
+
</TR>
|
171
|
+
</TABLE>
|
172
|
+
|
173
|
+
<A NAME="AbnerTokenizer()"><!-- --></A><H3>
|
174
|
+
AbnerTokenizer</H3>
|
175
|
+
<PRE>
|
176
|
+
public <B>AbnerTokenizer</B>()</PRE>
|
177
|
+
<DL>
|
178
|
+
</DL>
|
179
|
+
|
180
|
+
<!-- ============ METHOD DETAIL ========== -->
|
181
|
+
|
182
|
+
<A NAME="method_detail"><!-- --></A>
|
183
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
184
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
185
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
186
|
+
<B>Method Detail</B></FONT></TH>
|
187
|
+
</TR>
|
188
|
+
</TABLE>
|
189
|
+
|
190
|
+
<A NAME="tokenize(java.lang.String)"><!-- --></A><H3>
|
191
|
+
tokenize</H3>
|
192
|
+
<PRE>
|
193
|
+
public static java.lang.String <B>tokenize</B>(java.lang.String s)</PRE>
|
194
|
+
<DL>
|
195
|
+
<DD><p>Take raw text apply ABNER's built-in tokenization on it.
|
196
|
+
<P>
|
197
|
+
<DD><DL>
|
198
|
+
</DL>
|
199
|
+
</DD>
|
200
|
+
</DL>
|
201
|
+
<HR>
|
202
|
+
|
203
|
+
<A NAME="splitTermsByPunctuation(java.lang.String)"><!-- --></A><H3>
|
204
|
+
splitTermsByPunctuation</H3>
|
205
|
+
<PRE>
|
206
|
+
public static java.lang.String <B>splitTermsByPunctuation</B>(java.lang.String input)</PRE>
|
207
|
+
<DL>
|
208
|
+
<DD>Takes an input and splits the sentence by punctuations and spaces, then
|
209
|
+
stitches it back together with a space and returns
|
210
|
+
<P>
|
211
|
+
<DD><DL>
|
212
|
+
<DT><B>Parameters:</B><DD><CODE>input</CODE> - the input string to process
|
213
|
+
<DT><B>Returns:</B><DD>processed input string, where all words and punctuations are
|
214
|
+
seperated by space</DL>
|
215
|
+
</DD>
|
216
|
+
</DL>
|
217
|
+
<!-- ========= END OF CLASS DATA ========= -->
|
218
|
+
<HR>
|
219
|
+
|
220
|
+
|
221
|
+
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
222
|
+
<A NAME="navbar_bottom"><!-- --></A>
|
223
|
+
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
224
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
225
|
+
<TR>
|
226
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
227
|
+
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
228
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
229
|
+
<TR ALIGN="center" VALIGN="top">
|
230
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
231
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
232
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
233
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbnerTokenizer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
234
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
235
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
236
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
237
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
238
|
+
</TR>
|
239
|
+
</TABLE>
|
240
|
+
</TD>
|
241
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
242
|
+
</EM>
|
243
|
+
</TD>
|
244
|
+
</TR>
|
245
|
+
|
246
|
+
<TR>
|
247
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
248
|
+
PREV CLASS
|
249
|
+
<A HREF="../../lingscope/algorithms/AnnotationComparer.html" title="class in lingscope.algorithms"><B>NEXT CLASS</B></A></FONT></TD>
|
250
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
251
|
+
<A HREF="../../index.html?lingscope/algorithms/AbnerTokenizer.html" target="_top"><B>FRAMES</B></A>
|
252
|
+
<A HREF="AbnerTokenizer.html" target="_top"><B>NO FRAMES</B></A>
|
253
|
+
<SCRIPT type="text/javascript">
|
254
|
+
<!--
|
255
|
+
if(window==top) {
|
256
|
+
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
|
257
|
+
}
|
258
|
+
//-->
|
259
|
+
</SCRIPT>
|
260
|
+
<NOSCRIPT>
|
261
|
+
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
|
262
|
+
</NOSCRIPT>
|
263
|
+
|
264
|
+
|
265
|
+
</FONT></TD>
|
266
|
+
</TR>
|
267
|
+
<TR>
|
268
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
269
|
+
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
270
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
271
|
+
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
272
|
+
</TR>
|
273
|
+
</TABLE>
|
274
|
+
<A NAME="skip-navbar_bottom"></A>
|
275
|
+
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
276
|
+
|
277
|
+
<HR>
|
278
|
+
|
279
|
+
</BODY>
|
280
|
+
</HTML>
|
@@ -0,0 +1,526 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
+
<!--NewPage-->
|
3
|
+
<HTML>
|
4
|
+
<HEAD>
|
5
|
+
<!-- Generated by javadoc (build 1.6.0_65) on Tue Feb 18 19:45:41 CST 2014 -->
|
6
|
+
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
7
|
+
<TITLE>
|
8
|
+
AnnotationComparer
|
9
|
+
</TITLE>
|
10
|
+
|
11
|
+
<META NAME="date" CONTENT="2014-02-18">
|
12
|
+
|
13
|
+
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
|
14
|
+
|
15
|
+
<SCRIPT type="text/javascript">
|
16
|
+
function windowTitle()
|
17
|
+
{
|
18
|
+
if (location.href.indexOf('is-external=true') == -1) {
|
19
|
+
parent.document.title="AnnotationComparer";
|
20
|
+
}
|
21
|
+
}
|
22
|
+
</SCRIPT>
|
23
|
+
<NOSCRIPT>
|
24
|
+
</NOSCRIPT>
|
25
|
+
|
26
|
+
</HEAD>
|
27
|
+
|
28
|
+
<BODY BGCOLOR="white" onload="windowTitle();">
|
29
|
+
<HR>
|
30
|
+
|
31
|
+
|
32
|
+
<!-- ========= START OF TOP NAVBAR ======= -->
|
33
|
+
<A NAME="navbar_top"><!-- --></A>
|
34
|
+
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
35
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
36
|
+
<TR>
|
37
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
38
|
+
<A NAME="navbar_top_firstrow"><!-- --></A>
|
39
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
40
|
+
<TR ALIGN="center" VALIGN="top">
|
41
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
42
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
43
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
44
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AnnotationComparer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
45
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
46
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
47
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
48
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
49
|
+
</TR>
|
50
|
+
</TABLE>
|
51
|
+
</TD>
|
52
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
53
|
+
</EM>
|
54
|
+
</TD>
|
55
|
+
</TR>
|
56
|
+
|
57
|
+
<TR>
|
58
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
59
|
+
<A HREF="../../lingscope/algorithms/AbnerTokenizer.html" title="class in lingscope.algorithms"><B>PREV CLASS</B></A>
|
60
|
+
<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms"><B>NEXT CLASS</B></A></FONT></TD>
|
61
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
62
|
+
<A HREF="../../index.html?lingscope/algorithms/AnnotationComparer.html" target="_top"><B>FRAMES</B></A>
|
63
|
+
<A HREF="AnnotationComparer.html" target="_top"><B>NO FRAMES</B></A>
|
64
|
+
<SCRIPT type="text/javascript">
|
65
|
+
<!--
|
66
|
+
if(window==top) {
|
67
|
+
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
|
68
|
+
}
|
69
|
+
//-->
|
70
|
+
</SCRIPT>
|
71
|
+
<NOSCRIPT>
|
72
|
+
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
|
73
|
+
</NOSCRIPT>
|
74
|
+
|
75
|
+
|
76
|
+
</FONT></TD>
|
77
|
+
</TR>
|
78
|
+
<TR>
|
79
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
80
|
+
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
81
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
82
|
+
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
83
|
+
</TR>
|
84
|
+
</TABLE>
|
85
|
+
<A NAME="skip-navbar_top"></A>
|
86
|
+
<!-- ========= END OF TOP NAVBAR ========= -->
|
87
|
+
|
88
|
+
<HR>
|
89
|
+
<!-- ======== START OF CLASS DATA ======== -->
|
90
|
+
<H2>
|
91
|
+
<FONT SIZE="-1">
|
92
|
+
lingscope.algorithms</FONT>
|
93
|
+
<BR>
|
94
|
+
Class AnnotationComparer</H2>
|
95
|
+
<PRE>
|
96
|
+
java.lang.Object
|
97
|
+
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>lingscope.algorithms.AnnotationComparer</B>
|
98
|
+
</PRE>
|
99
|
+
<HR>
|
100
|
+
<DL>
|
101
|
+
<DT><PRE>public class <B>AnnotationComparer</B><DT>extends java.lang.Object</DL>
|
102
|
+
</PRE>
|
103
|
+
|
104
|
+
<P>
|
105
|
+
Compares two annotations or two annotation files
|
106
|
+
<P>
|
107
|
+
|
108
|
+
<P>
|
109
|
+
<HR>
|
110
|
+
|
111
|
+
<P>
|
112
|
+
|
113
|
+
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
114
|
+
|
115
|
+
<A NAME="constructor_summary"><!-- --></A>
|
116
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
117
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
118
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
119
|
+
<B>Constructor Summary</B></FONT></TH>
|
120
|
+
</TR>
|
121
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
122
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#AnnotationComparer(int)">AnnotationComparer</A></B>(int numFolds)</CODE>
|
123
|
+
|
124
|
+
<BR>
|
125
|
+
</TD>
|
126
|
+
</TR>
|
127
|
+
</TABLE>
|
128
|
+
|
129
|
+
<!-- ========== METHOD SUMMARY =========== -->
|
130
|
+
|
131
|
+
<A NAME="method_summary"><!-- --></A>
|
132
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
133
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
134
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
135
|
+
<B>Method Summary</B></FONT></TH>
|
136
|
+
</TR>
|
137
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
138
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
139
|
+
<CODE> void</CODE></FONT></TD>
|
140
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#compareAnnotationFiles(java.lang.String, java.lang.String)">compareAnnotationFiles</A></B>(java.lang.String goldFile,
|
141
|
+
java.lang.String testFile)</CODE>
|
142
|
+
|
143
|
+
<BR>
|
144
|
+
</TD>
|
145
|
+
</TR>
|
146
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
147
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
148
|
+
<CODE> void</CODE></FONT></TD>
|
149
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#compareAnnotations(lingscope.structures.AnnotatedSentence, lingscope.structures.AnnotatedSentence)">compareAnnotations</A></B>(<A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A> goldSentence,
|
150
|
+
<A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A> testSentence)</CODE>
|
151
|
+
|
152
|
+
<BR>
|
153
|
+
</TD>
|
154
|
+
</TR>
|
155
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
156
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
157
|
+
<CODE> double[]</CODE></FONT></TD>
|
158
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getAccuracies()">getAccuracies</A></B>()</CODE>
|
159
|
+
|
160
|
+
<BR>
|
161
|
+
</TD>
|
162
|
+
</TR>
|
163
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
164
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
165
|
+
<CODE> double</CODE></FONT></TD>
|
166
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getAccuracy(double, double, double, double)">getAccuracy</A></B>(double tp,
|
167
|
+
double fp,
|
168
|
+
double fn,
|
169
|
+
double tn)</CODE>
|
170
|
+
|
171
|
+
<BR>
|
172
|
+
</TD>
|
173
|
+
</TR>
|
174
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
175
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
176
|
+
<CODE> double</CODE></FONT></TD>
|
177
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getFScore(double, double)">getFScore</A></B>(double recall,
|
178
|
+
double precision)</CODE>
|
179
|
+
|
180
|
+
<BR>
|
181
|
+
</TD>
|
182
|
+
</TR>
|
183
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
184
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
185
|
+
<CODE> double[]</CODE></FONT></TD>
|
186
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getFScores(double[], double[])">getFScores</A></B>(double[] recalls,
|
187
|
+
double[] precisions)</CODE>
|
188
|
+
|
189
|
+
<BR>
|
190
|
+
</TD>
|
191
|
+
</TR>
|
192
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
193
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
194
|
+
<CODE> double[]</CODE></FONT></TD>
|
195
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getPerfectAccuracies()">getPerfectAccuracies</A></B>()</CODE>
|
196
|
+
|
197
|
+
<BR>
|
198
|
+
</TD>
|
199
|
+
</TR>
|
200
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
201
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
202
|
+
<CODE> double</CODE></FONT></TD>
|
203
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getPerfectAccuracy(double, double)">getPerfectAccuracy</A></B>(double trues,
|
204
|
+
double total)</CODE>
|
205
|
+
|
206
|
+
<BR>
|
207
|
+
</TD>
|
208
|
+
</TR>
|
209
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
210
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
211
|
+
<CODE> double</CODE></FONT></TD>
|
212
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getPrecision(double, double)">getPrecision</A></B>(double tp,
|
213
|
+
double fp)</CODE>
|
214
|
+
|
215
|
+
<BR>
|
216
|
+
</TD>
|
217
|
+
</TR>
|
218
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
219
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
220
|
+
<CODE> double[]</CODE></FONT></TD>
|
221
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getPrecisions()">getPrecisions</A></B>()</CODE>
|
222
|
+
|
223
|
+
<BR>
|
224
|
+
</TD>
|
225
|
+
</TR>
|
226
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
227
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
228
|
+
<CODE> double</CODE></FONT></TD>
|
229
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getRecall(double, double)">getRecall</A></B>(double tp,
|
230
|
+
double fn)</CODE>
|
231
|
+
|
232
|
+
<BR>
|
233
|
+
</TD>
|
234
|
+
</TR>
|
235
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
236
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
237
|
+
<CODE> double[]</CODE></FONT></TD>
|
238
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#getRecalls()">getRecalls</A></B>()</CODE>
|
239
|
+
|
240
|
+
<BR>
|
241
|
+
</TD>
|
242
|
+
</TR>
|
243
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
244
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
245
|
+
<CODE> void</CODE></FONT></TD>
|
246
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#printStats()">printStats</A></B>()</CODE>
|
247
|
+
|
248
|
+
<BR>
|
249
|
+
</TD>
|
250
|
+
</TR>
|
251
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
252
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
253
|
+
<CODE> void</CODE></FONT></TD>
|
254
|
+
<TD><CODE><B><A HREF="../../lingscope/algorithms/AnnotationComparer.html#reset()">reset</A></B>()</CODE>
|
255
|
+
|
256
|
+
<BR>
|
257
|
+
Resets the values for the comparer</TD>
|
258
|
+
</TR>
|
259
|
+
</TABLE>
|
260
|
+
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
261
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
262
|
+
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
263
|
+
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
264
|
+
</TR>
|
265
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
266
|
+
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
267
|
+
</TR>
|
268
|
+
</TABLE>
|
269
|
+
|
270
|
+
<P>
|
271
|
+
|
272
|
+
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
273
|
+
|
274
|
+
<A NAME="constructor_detail"><!-- --></A>
|
275
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
276
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
277
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
278
|
+
<B>Constructor Detail</B></FONT></TH>
|
279
|
+
</TR>
|
280
|
+
</TABLE>
|
281
|
+
|
282
|
+
<A NAME="AnnotationComparer(int)"><!-- --></A><H3>
|
283
|
+
AnnotationComparer</H3>
|
284
|
+
<PRE>
|
285
|
+
public <B>AnnotationComparer</B>(int numFolds)</PRE>
|
286
|
+
<DL>
|
287
|
+
</DL>
|
288
|
+
|
289
|
+
<!-- ============ METHOD DETAIL ========== -->
|
290
|
+
|
291
|
+
<A NAME="method_detail"><!-- --></A>
|
292
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
293
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
294
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
295
|
+
<B>Method Detail</B></FONT></TH>
|
296
|
+
</TR>
|
297
|
+
</TABLE>
|
298
|
+
|
299
|
+
<A NAME="reset()"><!-- --></A><H3>
|
300
|
+
reset</H3>
|
301
|
+
<PRE>
|
302
|
+
public final void <B>reset</B>()</PRE>
|
303
|
+
<DL>
|
304
|
+
<DD>Resets the values for the comparer
|
305
|
+
<P>
|
306
|
+
<DD><DL>
|
307
|
+
</DL>
|
308
|
+
</DD>
|
309
|
+
</DL>
|
310
|
+
<HR>
|
311
|
+
|
312
|
+
<A NAME="compareAnnotationFiles(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
313
|
+
compareAnnotationFiles</H3>
|
314
|
+
<PRE>
|
315
|
+
public void <B>compareAnnotationFiles</B>(java.lang.String goldFile,
|
316
|
+
java.lang.String testFile)</PRE>
|
317
|
+
<DL>
|
318
|
+
<DD><DL>
|
319
|
+
</DL>
|
320
|
+
</DD>
|
321
|
+
</DL>
|
322
|
+
<HR>
|
323
|
+
|
324
|
+
<A NAME="compareAnnotations(lingscope.structures.AnnotatedSentence, lingscope.structures.AnnotatedSentence)"><!-- --></A><H3>
|
325
|
+
compareAnnotations</H3>
|
326
|
+
<PRE>
|
327
|
+
public void <B>compareAnnotations</B>(<A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A> goldSentence,
|
328
|
+
<A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A> testSentence)</PRE>
|
329
|
+
<DL>
|
330
|
+
<DD><DL>
|
331
|
+
</DL>
|
332
|
+
</DD>
|
333
|
+
</DL>
|
334
|
+
<HR>
|
335
|
+
|
336
|
+
<A NAME="printStats()"><!-- --></A><H3>
|
337
|
+
printStats</H3>
|
338
|
+
<PRE>
|
339
|
+
public void <B>printStats</B>()</PRE>
|
340
|
+
<DL>
|
341
|
+
<DD><DL>
|
342
|
+
</DL>
|
343
|
+
</DD>
|
344
|
+
</DL>
|
345
|
+
<HR>
|
346
|
+
|
347
|
+
<A NAME="getRecalls()"><!-- --></A><H3>
|
348
|
+
getRecalls</H3>
|
349
|
+
<PRE>
|
350
|
+
public double[] <B>getRecalls</B>()</PRE>
|
351
|
+
<DL>
|
352
|
+
<DD><DL>
|
353
|
+
</DL>
|
354
|
+
</DD>
|
355
|
+
</DL>
|
356
|
+
<HR>
|
357
|
+
|
358
|
+
<A NAME="getPrecisions()"><!-- --></A><H3>
|
359
|
+
getPrecisions</H3>
|
360
|
+
<PRE>
|
361
|
+
public double[] <B>getPrecisions</B>()</PRE>
|
362
|
+
<DL>
|
363
|
+
<DD><DL>
|
364
|
+
</DL>
|
365
|
+
</DD>
|
366
|
+
</DL>
|
367
|
+
<HR>
|
368
|
+
|
369
|
+
<A NAME="getFScores(double[], double[])"><!-- --></A><H3>
|
370
|
+
getFScores</H3>
|
371
|
+
<PRE>
|
372
|
+
public double[] <B>getFScores</B>(double[] recalls,
|
373
|
+
double[] precisions)</PRE>
|
374
|
+
<DL>
|
375
|
+
<DD><DL>
|
376
|
+
</DL>
|
377
|
+
</DD>
|
378
|
+
</DL>
|
379
|
+
<HR>
|
380
|
+
|
381
|
+
<A NAME="getAccuracies()"><!-- --></A><H3>
|
382
|
+
getAccuracies</H3>
|
383
|
+
<PRE>
|
384
|
+
public double[] <B>getAccuracies</B>()</PRE>
|
385
|
+
<DL>
|
386
|
+
<DD><DL>
|
387
|
+
</DL>
|
388
|
+
</DD>
|
389
|
+
</DL>
|
390
|
+
<HR>
|
391
|
+
|
392
|
+
<A NAME="getPerfectAccuracies()"><!-- --></A><H3>
|
393
|
+
getPerfectAccuracies</H3>
|
394
|
+
<PRE>
|
395
|
+
public double[] <B>getPerfectAccuracies</B>()</PRE>
|
396
|
+
<DL>
|
397
|
+
<DD><DL>
|
398
|
+
</DL>
|
399
|
+
</DD>
|
400
|
+
</DL>
|
401
|
+
<HR>
|
402
|
+
|
403
|
+
<A NAME="getPerfectAccuracy(double, double)"><!-- --></A><H3>
|
404
|
+
getPerfectAccuracy</H3>
|
405
|
+
<PRE>
|
406
|
+
public double <B>getPerfectAccuracy</B>(double trues,
|
407
|
+
double total)</PRE>
|
408
|
+
<DL>
|
409
|
+
<DD><DL>
|
410
|
+
</DL>
|
411
|
+
</DD>
|
412
|
+
</DL>
|
413
|
+
<HR>
|
414
|
+
|
415
|
+
<A NAME="getAccuracy(double, double, double, double)"><!-- --></A><H3>
|
416
|
+
getAccuracy</H3>
|
417
|
+
<PRE>
|
418
|
+
public double <B>getAccuracy</B>(double tp,
|
419
|
+
double fp,
|
420
|
+
double fn,
|
421
|
+
double tn)</PRE>
|
422
|
+
<DL>
|
423
|
+
<DD><DL>
|
424
|
+
</DL>
|
425
|
+
</DD>
|
426
|
+
</DL>
|
427
|
+
<HR>
|
428
|
+
|
429
|
+
<A NAME="getRecall(double, double)"><!-- --></A><H3>
|
430
|
+
getRecall</H3>
|
431
|
+
<PRE>
|
432
|
+
public double <B>getRecall</B>(double tp,
|
433
|
+
double fn)</PRE>
|
434
|
+
<DL>
|
435
|
+
<DD><DL>
|
436
|
+
</DL>
|
437
|
+
</DD>
|
438
|
+
</DL>
|
439
|
+
<HR>
|
440
|
+
|
441
|
+
<A NAME="getPrecision(double, double)"><!-- --></A><H3>
|
442
|
+
getPrecision</H3>
|
443
|
+
<PRE>
|
444
|
+
public double <B>getPrecision</B>(double tp,
|
445
|
+
double fp)</PRE>
|
446
|
+
<DL>
|
447
|
+
<DD><DL>
|
448
|
+
</DL>
|
449
|
+
</DD>
|
450
|
+
</DL>
|
451
|
+
<HR>
|
452
|
+
|
453
|
+
<A NAME="getFScore(double, double)"><!-- --></A><H3>
|
454
|
+
getFScore</H3>
|
455
|
+
<PRE>
|
456
|
+
public double <B>getFScore</B>(double recall,
|
457
|
+
double precision)</PRE>
|
458
|
+
<DL>
|
459
|
+
<DD><DL>
|
460
|
+
</DL>
|
461
|
+
</DD>
|
462
|
+
</DL>
|
463
|
+
<!-- ========= END OF CLASS DATA ========= -->
|
464
|
+
<HR>
|
465
|
+
|
466
|
+
|
467
|
+
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
468
|
+
<A NAME="navbar_bottom"><!-- --></A>
|
469
|
+
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
470
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
471
|
+
<TR>
|
472
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
473
|
+
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
474
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
475
|
+
<TR ALIGN="center" VALIGN="top">
|
476
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
477
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
478
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
479
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AnnotationComparer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
480
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
481
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
482
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
483
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
484
|
+
</TR>
|
485
|
+
</TABLE>
|
486
|
+
</TD>
|
487
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
488
|
+
</EM>
|
489
|
+
</TD>
|
490
|
+
</TR>
|
491
|
+
|
492
|
+
<TR>
|
493
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
494
|
+
<A HREF="../../lingscope/algorithms/AbnerTokenizer.html" title="class in lingscope.algorithms"><B>PREV CLASS</B></A>
|
495
|
+
<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms"><B>NEXT CLASS</B></A></FONT></TD>
|
496
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
497
|
+
<A HREF="../../index.html?lingscope/algorithms/AnnotationComparer.html" target="_top"><B>FRAMES</B></A>
|
498
|
+
<A HREF="AnnotationComparer.html" target="_top"><B>NO FRAMES</B></A>
|
499
|
+
<SCRIPT type="text/javascript">
|
500
|
+
<!--
|
501
|
+
if(window==top) {
|
502
|
+
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
|
503
|
+
}
|
504
|
+
//-->
|
505
|
+
</SCRIPT>
|
506
|
+
<NOSCRIPT>
|
507
|
+
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
|
508
|
+
</NOSCRIPT>
|
509
|
+
|
510
|
+
|
511
|
+
</FONT></TD>
|
512
|
+
</TR>
|
513
|
+
<TR>
|
514
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
515
|
+
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
516
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
517
|
+
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
518
|
+
</TR>
|
519
|
+
</TABLE>
|
520
|
+
<A NAME="skip-navbar_bottom"></A>
|
521
|
+
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
522
|
+
|
523
|
+
<HR>
|
524
|
+
|
525
|
+
</BODY>
|
526
|
+
</HTML>
|