Skip to content

Commit

Permalink
Merge branch 'main' into feature/1321-Importing-.ann-files-from-BRAT
Browse files Browse the repository at this point in the history
* main:
  #4638 - Ability to filter annotation sidebar by covered text
  #4636 - Ability to collapse groups in annotation sidebar
  #4634 - Pull document file storage code out of document service into a new service
  #4550 - Clean up code
  #4625 - Azure AI Open AI recommender
  #4628 - Better results when using unlabelled annotations for few-shot learning
  #4550 - Clean up code
  #4625 - Azure AI Open AI recommender
  • Loading branch information
reckart committed Mar 17, 2024
2 parents f02a252 + e0d4e72 commit ef44fa9
Show file tree
Hide file tree
Showing 105 changed files with 2,961 additions and 541 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class FullUnitizingAgreementResult
{
private static final long serialVersionUID = 2092691057728349705L;

public FullUnitizingAgreementResult(String aType, String aFeature, IUnitizingAnnotationStudy aStudy,
List<String> aCasGroupIds, boolean aExcludeIncomplete)
public FullUnitizingAgreementResult(String aType, String aFeature,
IUnitizingAnnotationStudy aStudy, List<String> aCasGroupIds, boolean aExcludeIncomplete)
{
super(aType, aFeature, aStudy, aCasGroupIds, aExcludeIncomplete);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.io.File;
import java.io.FileInputStream;
import java.io.Serializable;
import java.lang.invoke.MethodHandles;

import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
Expand Down Expand Up @@ -55,7 +56,7 @@ public class ExportDocumentDialogContent
{
private static final long serialVersionUID = -2102136855109258306L;

private static final Logger LOG = LoggerFactory.getLogger(ExportDocumentDialogContent.class);
private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

private @SpringBean DocumentImportExportService importExportService;
private @SpringBean DocumentService documentService;
Expand Down Expand Up @@ -100,9 +101,8 @@ private IResourceStream export()
{
File exportedFile = null;
try {
AnnotatorState s = state.getObject();
FormatSupport format = importExportService
.getFormatByName(preferences.getObject().format).get();
var s = state.getObject();
var format = importExportService.getFormatByName(preferences.getObject().format).get();
exportedFile = importExportService.exportAnnotationDocument(s.getDocument(),
s.getUser().getUsername(), format, s.getMode());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ public AnnotationPreferencesDialogContent(String aId, IModel<AnnotatorState> aMo
editorChoices = getEditorChoices();
onChangeAction = aOnChangeAction;

form = new Form<>("form", new CompoundPropertyModel<>(loadPreferences(stateModel.getObject())));
form = new Form<>("form",
new CompoundPropertyModel<>(loadPreferences(stateModel.getObject())));

var windowSizeField = new NumberTextField<Integer>("windowSize");
windowSizeField.setType(Integer.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ default AnalysisEngineDescription getWriterDescription(Project aProject,
default void read(Project aProject, CAS cas, File aFile)
throws ResourceInitializationException, IOException, CollectionException
{
CollectionReaderDescription readerDescription = getReaderDescription(aProject, null);
var readerDescription = getReaderDescription(aProject, null);
addConfigurationParameters(readerDescription,
ResourceCollectionReaderBase.PARAM_SOURCE_LOCATION,
aFile.getParentFile().getAbsolutePath(),
Expand Down
5 changes: 5 additions & 0 deletions inception/inception-app-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@
<artifactId>inception-imls-lapps</artifactId>
</dependency>
-->
<dependency>
<groupId>de.tudarmstadt.ukp.inception.app</groupId>
<artifactId>inception-imls-azureai-openai</artifactId>
</dependency>
<dependency>
<groupId>de.tudarmstadt.ukp.inception.app</groupId>
<artifactId>inception-imls-opennlp</artifactId>
Expand Down Expand Up @@ -921,6 +925,7 @@
<usedDependency>de.tudarmstadt.ukp.inception.app:inception-imls-elg</usedDependency>
<usedDependency>de.tudarmstadt.ukp.inception.app:inception-imls-hf</usedDependency>
<usedDependency>de.tudarmstadt.ukp.inception.app:inception-imls-ollama</usedDependency>
<usedDependency>de.tudarmstadt.ukp.inception.app:inception-imls-azureai-openai</usedDependency>
<usedDependency>de.tudarmstadt.ukp.inception.app:inception-imls-opennlp</usedDependency>
<usedDependency>de.tudarmstadt.ukp.inception.app:inception-imls-stringmatch</usedDependency>
<usedDependency>de.tudarmstadt.ukp.inception.app:inception-imls-weblicht</usedDependency>
Expand Down
10 changes: 10 additions & 0 deletions inception/inception-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@
<artifactId>inception-concept-linking</artifactId>
<version>32.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.tudarmstadt.ukp.inception.app</groupId>
<artifactId>inception-imls-azureai-openai</artifactId>
<version>32.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.tudarmstadt.ukp.inception.app</groupId>
<artifactId>inception-imls-opennlp</artifactId>
Expand Down Expand Up @@ -282,6 +287,11 @@
<artifactId>inception-imls-ollama</artifactId>
<version>32.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.tudarmstadt.ukp.inception.app</groupId>
<artifactId>inception-imls-support-llm</artifactId>
<version>32.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.tudarmstadt.ukp.inception.app</groupId>
<artifactId>inception-imls-weblicht</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=11
org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false
org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
org.eclipse.jdt.core.formatter.align_selector_in_method_invocation_on_expression_first_line=false
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.align_variable_declarations_on_columns=false
org.eclipse.jdt.core.formatter.align_with_spaces=false
org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_enum_constant=49
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field=49
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable=49
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method=49
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package=49
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter=0
org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type=49
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
Expand All @@ -32,6 +40,8 @@ org.eclipse.jdt.core.formatter.alignment_for_conditional_expression_chain=0
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=16
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_switch_case_with_arrow=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_switch_case_with_colon=0
org.eclipse.jdt.core.formatter.alignment_for_logical_operator=16
org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_module_statements=16
Expand All @@ -40,6 +50,7 @@ org.eclipse.jdt.core.formatter.alignment_for_multiplicative_operator=16
org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references=0
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_permitted_types_in_type_declaration=37
org.eclipse.jdt.core.formatter.alignment_for_record_components=16
org.eclipse.jdt.core.formatter.alignment_for_relational_operator=0
org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
Expand All @@ -50,8 +61,10 @@ org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=37
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=37
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_record_declaration=37
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=37
org.eclipse.jdt.core.formatter.alignment_for_switch_case_with_arrow=0
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=36
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=36
org.eclipse.jdt.core.formatter.alignment_for_type_annotations=0
org.eclipse.jdt.core.formatter.alignment_for_type_arguments=0
org.eclipse.jdt.core.formatter.alignment_for_type_parameters=0
org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
Expand Down Expand Up @@ -80,7 +93,7 @@ org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line
org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line
org.eclipse.jdt.core.formatter.brace_position_for_record_constructor=next_line
org.eclipse.jdt.core.formatter.brace_position_for_record_declaration=next_line
org.eclipse.jdt.core.formatter.brace_position_for_record_declaration=next_line_on_wrap
org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line
org.eclipse.jdt.core.formatter.comment.align_tags_descriptions_grouped=false
Expand All @@ -100,6 +113,7 @@ org.eclipse.jdt.core.formatter.comment.indent_tag_description=false
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_between_different_tags=do not insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
org.eclipse.jdt.core.formatter.comment.javadoc_do_not_separate_block_tags=false
org.eclipse.jdt.core.formatter.comment.line_length=100
org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
Expand Down Expand Up @@ -172,6 +186,7 @@ org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arg
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_permitted_types=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_record_components=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_switch_case_expressions=insert
Expand Down Expand Up @@ -263,6 +278,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_ar
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_permitted_types=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_record_components=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_switch_case_expressions=do not insert
Expand Down Expand Up @@ -341,11 +357,13 @@ org.eclipse.jdt.core.formatter.keep_lambda_body_block_on_one_line=one_line_never
org.eclipse.jdt.core.formatter.keep_loop_body_block_on_one_line=one_line_never
org.eclipse.jdt.core.formatter.keep_method_body_on_one_line=one_line_never
org.eclipse.jdt.core.formatter.keep_record_constructor_on_one_line=one_line_never
org.eclipse.jdt.core.formatter.keep_record_declaration_on_one_line=one_line_never
org.eclipse.jdt.core.formatter.keep_record_declaration_on_one_line=one_line_if_empty
org.eclipse.jdt.core.formatter.keep_simple_do_while_body_on_same_line=false
org.eclipse.jdt.core.formatter.keep_simple_for_body_on_same_line=false
org.eclipse.jdt.core.formatter.keep_simple_getter_setter_on_one_line=false
org.eclipse.jdt.core.formatter.keep_simple_while_body_on_same_line=false
org.eclipse.jdt.core.formatter.keep_switch_body_block_on_one_line=one_line_never
org.eclipse.jdt.core.formatter.keep_switch_case_with_arrow_on_one_line=one_line_never
org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_type_declaration_on_one_line=one_line_never
org.eclipse.jdt.core.formatter.lineSplit=100
Expand Down Expand Up @@ -386,5 +404,6 @@ org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
org.eclipse.jdt.core.formatter.wrap_before_relational_operator=true
org.eclipse.jdt.core.formatter.wrap_before_shift_operator=true
org.eclipse.jdt.core.formatter.wrap_before_string_concatenation=true
org.eclipse.jdt.core.formatter.wrap_before_switch_case_arrow_operator=false
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.javaFormatter=org.eclipse.jdt.core.defaultJavaFormatter
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
eclipse.preferences.version=1
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_DKPro Style
formatter_settings_version=20
formatter_settings_version=23
sp_cleanup.add_default_serial_version_id=true
sp_cleanup.add_generated_serial_version_id=false
sp_cleanup.add_missing_annotations=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public class SpanDiffAdapter
public static final SpanDiffAdapter SENTENCE_DIFF_ADAPTER = new SpanDiffAdapter(
Sentence.class.getName());

public static final SpanDiffAdapter POS_DIFF_ADAPTER = new SpanDiffAdapter(
POS.class.getName(), "PosValue", "coarseValue");
public static final SpanDiffAdapter POS_DIFF_ADAPTER = new SpanDiffAdapter(POS.class.getName(),
"PosValue", "coarseValue");

public static final SpanDiffAdapter NER_DIFF_ADAPTER = new SpanDiffAdapter(
NamedEntity.class.getName(), "value", "identifier");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public boolean isHideScore()
{
return hideScore;
}

public void setHideScore(boolean aHideScore)
{
hideScore = aHideScore;
Expand Down
Loading

0 comments on commit ef44fa9

Please sign in to comment.