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,313 @@
|
|
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
|
+
SentencePosTagger
|
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="SentencePosTagger";
|
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/SentencePosTagger.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/drivers/PosTaggerDriver.html" title="class in lingscope.drivers"><B>PREV CLASS</B></A>
|
60
|
+
<A HREF="../../lingscope/drivers/SentenceTagger.html" title="class in lingscope.drivers"><B>NEXT CLASS</B></A></FONT></TD>
|
61
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
62
|
+
<A HREF="../../index.html?lingscope/drivers/SentencePosTagger.html" target="_top"><B>FRAMES</B></A>
|
63
|
+
<A HREF="SentencePosTagger.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.drivers</FONT>
|
93
|
+
<BR>
|
94
|
+
Class SentencePosTagger</H2>
|
95
|
+
<PRE>
|
96
|
+
java.lang.Object
|
97
|
+
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>lingscope.drivers.SentencePosTagger</B>
|
98
|
+
</PRE>
|
99
|
+
<HR>
|
100
|
+
<DL>
|
101
|
+
<DT><PRE>public class <B>SentencePosTagger</B><DT>extends java.lang.Object</DL>
|
102
|
+
</PRE>
|
103
|
+
|
104
|
+
<P>
|
105
|
+
Use this sentence tagger when using a model that tags POS
|
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/drivers/SentencePosTagger.html#SentencePosTagger()">SentencePosTagger</A></B>()</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>static void</CODE></FONT></TD>
|
140
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentencePosTagger.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE>
|
141
|
+
|
142
|
+
<BR>
|
143
|
+
</TD>
|
144
|
+
</TR>
|
145
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
146
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
147
|
+
<CODE>static void</CODE></FONT></TD>
|
148
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentencePosTagger.html#tagSentence(java.lang.String, java.lang.String, boolean, lingscope.algorithms.Annotator, lingscope.algorithms.Annotator)">tagSentence</A></B>(java.lang.String sentence,
|
149
|
+
java.lang.String grammarFile,
|
150
|
+
boolean replaceCueWords,
|
151
|
+
<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A> cueAnnotator,
|
152
|
+
<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A> scopeAnnotator)</CODE>
|
153
|
+
|
154
|
+
<BR>
|
155
|
+
Tags the given sentence</TD>
|
156
|
+
</TR>
|
157
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
158
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
159
|
+
<CODE>static void</CODE></FONT></TD>
|
160
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentencePosTagger.html#usage()">usage</A></B>()</CODE>
|
161
|
+
|
162
|
+
<BR>
|
163
|
+
</TD>
|
164
|
+
</TR>
|
165
|
+
</TABLE>
|
166
|
+
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
167
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
168
|
+
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
169
|
+
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
170
|
+
</TR>
|
171
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
172
|
+
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
173
|
+
</TR>
|
174
|
+
</TABLE>
|
175
|
+
|
176
|
+
<P>
|
177
|
+
|
178
|
+
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
179
|
+
|
180
|
+
<A NAME="constructor_detail"><!-- --></A>
|
181
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
182
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
183
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
184
|
+
<B>Constructor Detail</B></FONT></TH>
|
185
|
+
</TR>
|
186
|
+
</TABLE>
|
187
|
+
|
188
|
+
<A NAME="SentencePosTagger()"><!-- --></A><H3>
|
189
|
+
SentencePosTagger</H3>
|
190
|
+
<PRE>
|
191
|
+
public <B>SentencePosTagger</B>()</PRE>
|
192
|
+
<DL>
|
193
|
+
</DL>
|
194
|
+
|
195
|
+
<!-- ============ METHOD DETAIL ========== -->
|
196
|
+
|
197
|
+
<A NAME="method_detail"><!-- --></A>
|
198
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
199
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
200
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
201
|
+
<B>Method Detail</B></FONT></TH>
|
202
|
+
</TR>
|
203
|
+
</TABLE>
|
204
|
+
|
205
|
+
<A NAME="usage()"><!-- --></A><H3>
|
206
|
+
usage</H3>
|
207
|
+
<PRE>
|
208
|
+
public static void <B>usage</B>()</PRE>
|
209
|
+
<DL>
|
210
|
+
<DD><DL>
|
211
|
+
</DL>
|
212
|
+
</DD>
|
213
|
+
</DL>
|
214
|
+
<HR>
|
215
|
+
|
216
|
+
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
|
217
|
+
main</H3>
|
218
|
+
<PRE>
|
219
|
+
public static void <B>main</B>(java.lang.String[] args)</PRE>
|
220
|
+
<DL>
|
221
|
+
<DD><DL>
|
222
|
+
<DT><B>Parameters:</B><DD><CODE>args</CODE> - 0 - cue tagging model
|
223
|
+
1 - cue tagger type (baseline, crf or negex)
|
224
|
+
2 - replace cue words with custom tag CUE (true) or not (false)
|
225
|
+
3 - crf pos-based scope tagging model
|
226
|
+
4 - POS model file
|
227
|
+
5 - sentence to tag</DL>
|
228
|
+
</DD>
|
229
|
+
</DL>
|
230
|
+
<HR>
|
231
|
+
|
232
|
+
<A NAME="tagSentence(java.lang.String, java.lang.String, boolean, lingscope.algorithms.Annotator, lingscope.algorithms.Annotator)"><!-- --></A><H3>
|
233
|
+
tagSentence</H3>
|
234
|
+
<PRE>
|
235
|
+
public static void <B>tagSentence</B>(java.lang.String sentence,
|
236
|
+
java.lang.String grammarFile,
|
237
|
+
boolean replaceCueWords,
|
238
|
+
<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A> cueAnnotator,
|
239
|
+
<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A> scopeAnnotator)</PRE>
|
240
|
+
<DL>
|
241
|
+
<DD>Tags the given sentence
|
242
|
+
<P>
|
243
|
+
<DD><DL>
|
244
|
+
<DT><B>Parameters:</B><DD><CODE>sentence</CODE> - the text of the sentence to tag<DD><CODE>grammarFile</CODE> - path to the Stanford part of speech model file<DD><CODE>replaceCueWords</CODE> - if true, cue words will be replaced with custom
|
245
|
+
tag 'CUE'<DD><CODE>cueAnnotator</CODE> - the <A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms"><CODE>Annotator</CODE></A> object to identify negation or
|
246
|
+
hedge cue in the sentence<DD><CODE>scopeAnnotator</CODE> - the <A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms"><CODE>Annotator</CODE></A> object to identify negation
|
247
|
+
or hedge scope in the sentence</DL>
|
248
|
+
</DD>
|
249
|
+
</DL>
|
250
|
+
<!-- ========= END OF CLASS DATA ========= -->
|
251
|
+
<HR>
|
252
|
+
|
253
|
+
|
254
|
+
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
255
|
+
<A NAME="navbar_bottom"><!-- --></A>
|
256
|
+
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
257
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
258
|
+
<TR>
|
259
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
260
|
+
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
261
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
262
|
+
<TR ALIGN="center" VALIGN="top">
|
263
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
264
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
265
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
266
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SentencePosTagger.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
267
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
268
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
269
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
270
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
271
|
+
</TR>
|
272
|
+
</TABLE>
|
273
|
+
</TD>
|
274
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
275
|
+
</EM>
|
276
|
+
</TD>
|
277
|
+
</TR>
|
278
|
+
|
279
|
+
<TR>
|
280
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
281
|
+
<A HREF="../../lingscope/drivers/PosTaggerDriver.html" title="class in lingscope.drivers"><B>PREV CLASS</B></A>
|
282
|
+
<A HREF="../../lingscope/drivers/SentenceTagger.html" title="class in lingscope.drivers"><B>NEXT CLASS</B></A></FONT></TD>
|
283
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
284
|
+
<A HREF="../../index.html?lingscope/drivers/SentencePosTagger.html" target="_top"><B>FRAMES</B></A>
|
285
|
+
<A HREF="SentencePosTagger.html" target="_top"><B>NO FRAMES</B></A>
|
286
|
+
<SCRIPT type="text/javascript">
|
287
|
+
<!--
|
288
|
+
if(window==top) {
|
289
|
+
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
|
290
|
+
}
|
291
|
+
//-->
|
292
|
+
</SCRIPT>
|
293
|
+
<NOSCRIPT>
|
294
|
+
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
|
295
|
+
</NOSCRIPT>
|
296
|
+
|
297
|
+
|
298
|
+
</FONT></TD>
|
299
|
+
</TR>
|
300
|
+
<TR>
|
301
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
302
|
+
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
303
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
304
|
+
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
305
|
+
</TR>
|
306
|
+
</TABLE>
|
307
|
+
<A NAME="skip-navbar_bottom"></A>
|
308
|
+
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
309
|
+
|
310
|
+
<HR>
|
311
|
+
|
312
|
+
</BODY>
|
313
|
+
</HTML>
|
@@ -0,0 +1,512 @@
|
|
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
|
+
SentenceTagger
|
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="SentenceTagger";
|
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/SentenceTagger.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/drivers/SentencePosTagger.html" title="class in lingscope.drivers"><B>PREV CLASS</B></A>
|
60
|
+
NEXT CLASS</FONT></TD>
|
61
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
62
|
+
<A HREF="../../index.html?lingscope/drivers/SentenceTagger.html" target="_top"><B>FRAMES</B></A>
|
63
|
+
<A HREF="SentenceTagger.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 | <A HREF="#field_summary">FIELD</A> | <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: <A HREF="#field_detail">FIELD</A> | <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.drivers</FONT>
|
93
|
+
<BR>
|
94
|
+
Class SentenceTagger</H2>
|
95
|
+
<PRE>
|
96
|
+
java.lang.Object
|
97
|
+
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>lingscope.drivers.SentenceTagger</B>
|
98
|
+
</PRE>
|
99
|
+
<HR>
|
100
|
+
<DL>
|
101
|
+
<DT><PRE>public class <B>SentenceTagger</B><DT>extends java.lang.Object</DL>
|
102
|
+
</PRE>
|
103
|
+
|
104
|
+
<P>
|
105
|
+
Tags scope or cue in a single sentence
|
106
|
+
<P>
|
107
|
+
|
108
|
+
<P>
|
109
|
+
<HR>
|
110
|
+
|
111
|
+
<P>
|
112
|
+
<!-- =========== FIELD SUMMARY =========== -->
|
113
|
+
|
114
|
+
<A NAME="field_summary"><!-- --></A>
|
115
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
116
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
117
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
118
|
+
<B>Field Summary</B></FONT></TH>
|
119
|
+
</TR>
|
120
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
121
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
122
|
+
<CODE>static java.lang.String</CODE></FONT></TD>
|
123
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#CUE_INTER">CUE_INTER</A></B></CODE>
|
124
|
+
|
125
|
+
<BR>
|
126
|
+
</TD>
|
127
|
+
</TR>
|
128
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
129
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
130
|
+
<CODE>static java.lang.String</CODE></FONT></TD>
|
131
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#CUE_START">CUE_START</A></B></CODE>
|
132
|
+
|
133
|
+
<BR>
|
134
|
+
</TD>
|
135
|
+
</TR>
|
136
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
137
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
138
|
+
<CODE>static java.lang.String</CODE></FONT></TD>
|
139
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#OTHER">OTHER</A></B></CODE>
|
140
|
+
|
141
|
+
<BR>
|
142
|
+
</TD>
|
143
|
+
</TR>
|
144
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
145
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
146
|
+
<CODE>static java.lang.String</CODE></FONT></TD>
|
147
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#SCOPE_INTER">SCOPE_INTER</A></B></CODE>
|
148
|
+
|
149
|
+
<BR>
|
150
|
+
</TD>
|
151
|
+
</TR>
|
152
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
153
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
154
|
+
<CODE>static java.lang.String</CODE></FONT></TD>
|
155
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#SCOPE_START">SCOPE_START</A></B></CODE>
|
156
|
+
|
157
|
+
<BR>
|
158
|
+
</TD>
|
159
|
+
</TR>
|
160
|
+
</TABLE>
|
161
|
+
|
162
|
+
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
163
|
+
|
164
|
+
<A NAME="constructor_summary"><!-- --></A>
|
165
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
166
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
167
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
168
|
+
<B>Constructor Summary</B></FONT></TH>
|
169
|
+
</TR>
|
170
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
171
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#SentenceTagger()">SentenceTagger</A></B>()</CODE>
|
172
|
+
|
173
|
+
<BR>
|
174
|
+
</TD>
|
175
|
+
</TR>
|
176
|
+
</TABLE>
|
177
|
+
|
178
|
+
<!-- ========== METHOD SUMMARY =========== -->
|
179
|
+
|
180
|
+
<A NAME="method_summary"><!-- --></A>
|
181
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
182
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
183
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
184
|
+
<B>Method Summary</B></FONT></TH>
|
185
|
+
</TR>
|
186
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
187
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
188
|
+
<CODE>static java.util.List<<A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A>></CODE></FONT></TD>
|
189
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#annotateSentences(lingscope.algorithms.Annotator, java.util.List, boolean)">annotateSentences</A></B>(<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A> annotator,
|
190
|
+
java.util.List<java.lang.String> inputSentences,
|
191
|
+
boolean isTokenized)</CODE>
|
192
|
+
|
193
|
+
<BR>
|
194
|
+
</TD>
|
195
|
+
</TR>
|
196
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
197
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
198
|
+
<CODE>static <A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A></CODE></FONT></TD>
|
199
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#getAnnotator(java.lang.String, java.lang.String)">getAnnotator</A></B>(java.lang.String classifierType,
|
200
|
+
java.lang.String markType)</CODE>
|
201
|
+
|
202
|
+
<BR>
|
203
|
+
Gets the Annotator from the given classifier and mark type</TD>
|
204
|
+
</TR>
|
205
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
206
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
207
|
+
<CODE>static java.util.List<java.lang.String></CODE></FONT></TD>
|
208
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#getStringList(java.lang.String, boolean)">getStringList</A></B>(java.lang.String inputFile,
|
209
|
+
boolean isAnnotated)</CODE>
|
210
|
+
|
211
|
+
<BR>
|
212
|
+
Gets the list of sentences in string format from the given inputFile.</TD>
|
213
|
+
</TR>
|
214
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
215
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
216
|
+
<CODE>static java.util.List<java.lang.String></CODE></FONT></TD>
|
217
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#getStringListFromAnnotatedSentences(java.util.List)">getStringListFromAnnotatedSentences</A></B>(java.util.List<<A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A>> annotatedSentences)</CODE>
|
218
|
+
|
219
|
+
<BR>
|
220
|
+
Given a list of annotated sentences, return a list where the annotated
|
221
|
+
sentences are replaced with strings</TD>
|
222
|
+
</TR>
|
223
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
224
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
225
|
+
<CODE>static void</CODE></FONT></TD>
|
226
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE>
|
227
|
+
|
228
|
+
<BR>
|
229
|
+
</TD>
|
230
|
+
</TR>
|
231
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
232
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
233
|
+
<CODE>static <A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A></CODE></FONT></TD>
|
234
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#tag(lingscope.algorithms.Annotator, java.lang.String, boolean)">tag</A></B>(<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A> annotator,
|
235
|
+
java.lang.String sentence,
|
236
|
+
boolean isTokenized)</CODE>
|
237
|
+
|
238
|
+
<BR>
|
239
|
+
Tags the given sentence with the given annotator</TD>
|
240
|
+
</TR>
|
241
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
242
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
243
|
+
<CODE>static void</CODE></FONT></TD>
|
244
|
+
<TD><CODE><B><A HREF="../../lingscope/drivers/SentenceTagger.html#usage()">usage</A></B>()</CODE>
|
245
|
+
|
246
|
+
<BR>
|
247
|
+
Prints the usage for the sentence tagger</TD>
|
248
|
+
</TR>
|
249
|
+
</TABLE>
|
250
|
+
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
251
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
252
|
+
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
253
|
+
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
254
|
+
</TR>
|
255
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
256
|
+
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
257
|
+
</TR>
|
258
|
+
</TABLE>
|
259
|
+
|
260
|
+
<P>
|
261
|
+
|
262
|
+
<!-- ============ FIELD DETAIL =========== -->
|
263
|
+
|
264
|
+
<A NAME="field_detail"><!-- --></A>
|
265
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
266
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
267
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
268
|
+
<B>Field Detail</B></FONT></TH>
|
269
|
+
</TR>
|
270
|
+
</TABLE>
|
271
|
+
|
272
|
+
<A NAME="CUE_START"><!-- --></A><H3>
|
273
|
+
CUE_START</H3>
|
274
|
+
<PRE>
|
275
|
+
public static final java.lang.String <B>CUE_START</B></PRE>
|
276
|
+
<DL>
|
277
|
+
<DL>
|
278
|
+
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#lingscope.drivers.SentenceTagger.CUE_START">Constant Field Values</A></DL>
|
279
|
+
</DL>
|
280
|
+
<HR>
|
281
|
+
|
282
|
+
<A NAME="CUE_INTER"><!-- --></A><H3>
|
283
|
+
CUE_INTER</H3>
|
284
|
+
<PRE>
|
285
|
+
public static final java.lang.String <B>CUE_INTER</B></PRE>
|
286
|
+
<DL>
|
287
|
+
<DL>
|
288
|
+
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#lingscope.drivers.SentenceTagger.CUE_INTER">Constant Field Values</A></DL>
|
289
|
+
</DL>
|
290
|
+
<HR>
|
291
|
+
|
292
|
+
<A NAME="SCOPE_START"><!-- --></A><H3>
|
293
|
+
SCOPE_START</H3>
|
294
|
+
<PRE>
|
295
|
+
public static final java.lang.String <B>SCOPE_START</B></PRE>
|
296
|
+
<DL>
|
297
|
+
<DL>
|
298
|
+
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#lingscope.drivers.SentenceTagger.SCOPE_START">Constant Field Values</A></DL>
|
299
|
+
</DL>
|
300
|
+
<HR>
|
301
|
+
|
302
|
+
<A NAME="SCOPE_INTER"><!-- --></A><H3>
|
303
|
+
SCOPE_INTER</H3>
|
304
|
+
<PRE>
|
305
|
+
public static final java.lang.String <B>SCOPE_INTER</B></PRE>
|
306
|
+
<DL>
|
307
|
+
<DL>
|
308
|
+
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#lingscope.drivers.SentenceTagger.SCOPE_INTER">Constant Field Values</A></DL>
|
309
|
+
</DL>
|
310
|
+
<HR>
|
311
|
+
|
312
|
+
<A NAME="OTHER"><!-- --></A><H3>
|
313
|
+
OTHER</H3>
|
314
|
+
<PRE>
|
315
|
+
public static final java.lang.String <B>OTHER</B></PRE>
|
316
|
+
<DL>
|
317
|
+
<DL>
|
318
|
+
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#lingscope.drivers.SentenceTagger.OTHER">Constant Field Values</A></DL>
|
319
|
+
</DL>
|
320
|
+
|
321
|
+
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
322
|
+
|
323
|
+
<A NAME="constructor_detail"><!-- --></A>
|
324
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
325
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
326
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
327
|
+
<B>Constructor Detail</B></FONT></TH>
|
328
|
+
</TR>
|
329
|
+
</TABLE>
|
330
|
+
|
331
|
+
<A NAME="SentenceTagger()"><!-- --></A><H3>
|
332
|
+
SentenceTagger</H3>
|
333
|
+
<PRE>
|
334
|
+
public <B>SentenceTagger</B>()</PRE>
|
335
|
+
<DL>
|
336
|
+
</DL>
|
337
|
+
|
338
|
+
<!-- ============ METHOD DETAIL ========== -->
|
339
|
+
|
340
|
+
<A NAME="method_detail"><!-- --></A>
|
341
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
342
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
343
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
344
|
+
<B>Method Detail</B></FONT></TH>
|
345
|
+
</TR>
|
346
|
+
</TABLE>
|
347
|
+
|
348
|
+
<A NAME="tag(lingscope.algorithms.Annotator, java.lang.String, boolean)"><!-- --></A><H3>
|
349
|
+
tag</H3>
|
350
|
+
<PRE>
|
351
|
+
public static <A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A> <B>tag</B>(<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A> annotator,
|
352
|
+
java.lang.String sentence,
|
353
|
+
boolean isTokenized)</PRE>
|
354
|
+
<DL>
|
355
|
+
<DD>Tags the given sentence with the given annotator
|
356
|
+
<P>
|
357
|
+
<DD><DL>
|
358
|
+
<DT><B>Parameters:</B><DD><CODE>annotator</CODE> - <DD><CODE>sentence</CODE> - <DD><CODE>isTokenized</CODE> -
|
359
|
+
<DT><B>Returns:</B><DD></DL>
|
360
|
+
</DD>
|
361
|
+
</DL>
|
362
|
+
<HR>
|
363
|
+
|
364
|
+
<A NAME="usage()"><!-- --></A><H3>
|
365
|
+
usage</H3>
|
366
|
+
<PRE>
|
367
|
+
public static void <B>usage</B>()</PRE>
|
368
|
+
<DL>
|
369
|
+
<DD>Prints the usage for the sentence tagger
|
370
|
+
<P>
|
371
|
+
<DD><DL>
|
372
|
+
</DL>
|
373
|
+
</DD>
|
374
|
+
</DL>
|
375
|
+
<HR>
|
376
|
+
|
377
|
+
<A NAME="getStringListFromAnnotatedSentences(java.util.List)"><!-- --></A><H3>
|
378
|
+
getStringListFromAnnotatedSentences</H3>
|
379
|
+
<PRE>
|
380
|
+
public static java.util.List<java.lang.String> <B>getStringListFromAnnotatedSentences</B>(java.util.List<<A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A>> annotatedSentences)</PRE>
|
381
|
+
<DL>
|
382
|
+
<DD>Given a list of annotated sentences, return a list where the annotated
|
383
|
+
sentences are replaced with strings
|
384
|
+
<P>
|
385
|
+
<DD><DL>
|
386
|
+
<DT><B>Parameters:</B><DD><CODE>annotatedSentences</CODE> -
|
387
|
+
<DT><B>Returns:</B><DD></DL>
|
388
|
+
</DD>
|
389
|
+
</DL>
|
390
|
+
<HR>
|
391
|
+
|
392
|
+
<A NAME="annotateSentences(lingscope.algorithms.Annotator, java.util.List, boolean)"><!-- --></A><H3>
|
393
|
+
annotateSentences</H3>
|
394
|
+
<PRE>
|
395
|
+
public static java.util.List<<A HREF="../../lingscope/structures/AnnotatedSentence.html" title="class in lingscope.structures">AnnotatedSentence</A>> <B>annotateSentences</B>(<A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A> annotator,
|
396
|
+
java.util.List<java.lang.String> inputSentences,
|
397
|
+
boolean isTokenized)</PRE>
|
398
|
+
<DL>
|
399
|
+
<DD><DL>
|
400
|
+
</DL>
|
401
|
+
</DD>
|
402
|
+
</DL>
|
403
|
+
<HR>
|
404
|
+
|
405
|
+
<A NAME="getStringList(java.lang.String, boolean)"><!-- --></A><H3>
|
406
|
+
getStringList</H3>
|
407
|
+
<PRE>
|
408
|
+
public static java.util.List<java.lang.String> <B>getStringList</B>(java.lang.String inputFile,
|
409
|
+
boolean isAnnotated)</PRE>
|
410
|
+
<DL>
|
411
|
+
<DD>Gets the list of sentences in string format from the given inputFile.
|
412
|
+
<P>
|
413
|
+
<DD><DL>
|
414
|
+
<DT><B>Parameters:</B><DD><CODE>inputFile</CODE> - the file containing input sentences<DD><CODE>isAnnotated</CODE> - set this as true if the input file contains annotated
|
415
|
+
sentences. Set this as false if the input file contains only sentences
|
416
|
+
as strings
|
417
|
+
<DT><B>Returns:</B><DD>the list of sentences in string format in the given inputFile</DL>
|
418
|
+
</DD>
|
419
|
+
</DL>
|
420
|
+
<HR>
|
421
|
+
|
422
|
+
<A NAME="getAnnotator(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
423
|
+
getAnnotator</H3>
|
424
|
+
<PRE>
|
425
|
+
public static <A HREF="../../lingscope/algorithms/Annotator.html" title="class in lingscope.algorithms">Annotator</A> <B>getAnnotator</B>(java.lang.String classifierType,
|
426
|
+
java.lang.String markType)</PRE>
|
427
|
+
<DL>
|
428
|
+
<DD>Gets the Annotator from the given classifier and mark type
|
429
|
+
<P>
|
430
|
+
<DD><DL>
|
431
|
+
<DT><B>Parameters:</B><DD><CODE>classifierType</CODE> - such as "baseline", "crf", or "negex"<DD><CODE>markType</CODE> -
|
432
|
+
<DT><B>Returns:</B><DD></DL>
|
433
|
+
</DD>
|
434
|
+
</DL>
|
435
|
+
<HR>
|
436
|
+
|
437
|
+
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
|
438
|
+
main</H3>
|
439
|
+
<PRE>
|
440
|
+
public static void <B>main</B>(java.lang.String[] args)</PRE>
|
441
|
+
<DL>
|
442
|
+
<DD><DL>
|
443
|
+
<DT><B>Parameters:</B><DD><CODE>args</CODE> - 0 - Annotator type ("cue" or "scope")
|
444
|
+
1 - Model type ("crf", "baseline" or "negex")
|
445
|
+
2 - Saved model file
|
446
|
+
3 - Sentence to tag</DL>
|
447
|
+
</DD>
|
448
|
+
</DL>
|
449
|
+
<!-- ========= END OF CLASS DATA ========= -->
|
450
|
+
<HR>
|
451
|
+
|
452
|
+
|
453
|
+
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
454
|
+
<A NAME="navbar_bottom"><!-- --></A>
|
455
|
+
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
456
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
457
|
+
<TR>
|
458
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
459
|
+
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
460
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
461
|
+
<TR ALIGN="center" VALIGN="top">
|
462
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
463
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
464
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
465
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SentenceTagger.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
466
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
467
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
468
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
469
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
470
|
+
</TR>
|
471
|
+
</TABLE>
|
472
|
+
</TD>
|
473
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
474
|
+
</EM>
|
475
|
+
</TD>
|
476
|
+
</TR>
|
477
|
+
|
478
|
+
<TR>
|
479
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
480
|
+
<A HREF="../../lingscope/drivers/SentencePosTagger.html" title="class in lingscope.drivers"><B>PREV CLASS</B></A>
|
481
|
+
NEXT CLASS</FONT></TD>
|
482
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
483
|
+
<A HREF="../../index.html?lingscope/drivers/SentenceTagger.html" target="_top"><B>FRAMES</B></A>
|
484
|
+
<A HREF="SentenceTagger.html" target="_top"><B>NO FRAMES</B></A>
|
485
|
+
<SCRIPT type="text/javascript">
|
486
|
+
<!--
|
487
|
+
if(window==top) {
|
488
|
+
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
|
489
|
+
}
|
490
|
+
//-->
|
491
|
+
</SCRIPT>
|
492
|
+
<NOSCRIPT>
|
493
|
+
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
|
494
|
+
</NOSCRIPT>
|
495
|
+
|
496
|
+
|
497
|
+
</FONT></TD>
|
498
|
+
</TR>
|
499
|
+
<TR>
|
500
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
501
|
+
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
502
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
503
|
+
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
504
|
+
</TR>
|
505
|
+
</TABLE>
|
506
|
+
<A NAME="skip-navbar_bottom"></A>
|
507
|
+
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
508
|
+
|
509
|
+
<HR>
|
510
|
+
|
511
|
+
</BODY>
|
512
|
+
</HTML>
|