Skip to content

Commit

Permalink
Merge pull request #4492 from inception-project/feature/4434-Ability-…
Browse files Browse the repository at this point in the history
…to-apply-a-recommender-to-all-documents-in-a-project

#4434 - Ability to apply a recommender to all documents in a project
  • Loading branch information
reckart authored Feb 2, 2024
2 parents c0bedde + aa75db0 commit 6537664
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ include::{include-dir}settings_recommender.adoc[leveloffset=+1]
include::{include-dir}settings_string_relation_recommender.adoc[leveloffset=+2]
include::{include-dir}settings_recommendation_external.adoc[leveloffset=+2]

include::{include-dir}settings_bulk_processing.adoc[leveloffset=+1]

include::{include-dir}settings_sharing.adoc[leveloffset=+1]

include::{include-dir}settings_versioning.adoc[leveloffset=+1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import javax.servlet.ServletContext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
Expand Down Expand Up @@ -237,6 +238,7 @@ public SuggestionSupportRegistry layerRecommendtionSupportRegistry(

@ConditionalOnWebApplication
@Bean
@ConditionalOnExpression("${websocket.enabled:true} and ${bulk-processing.enabled:false}")
public BulkProcessingPageMenuItem bulkProcessingPageMenuItem(UserDao aUserRepo,
ProjectService aProjectService, ServletContext aServletContext)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@
package de.tudarmstadt.ukp.inception.recommendation.processor;

import static de.tudarmstadt.ukp.clarin.webanno.model.PermissionLevel.MANAGER;
import static de.tudarmstadt.ukp.clarin.webanno.ui.core.page.ProjectPageBase.NS_PROJECT;
import static de.tudarmstadt.ukp.clarin.webanno.ui.core.page.ProjectPageBase.PAGE_PARAM_PROJECT;

import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.spring.injection.annot.SpringBean;
import org.wicketstuff.annotation.mount.MountPath;

import de.tudarmstadt.ukp.clarin.webanno.security.UserDao;
import de.tudarmstadt.ukp.clarin.webanno.security.model.User;
import de.tudarmstadt.ukp.clarin.webanno.ui.core.page.ProjectPageBase;

@MountPath(NS_PROJECT + "/${" + PAGE_PARAM_PROJECT + "}/process")
public class BulkProcessingPage
extends ProjectPageBase
{
Expand All @@ -37,7 +40,7 @@ public BulkProcessingPage(PageParameters aParameters)
{
super(aParameters);

User user = userRepository.getCurrentUser();
var user = userRepository.getCurrentUser();

requireProjectRole(user, MANAGER);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Licensed to the Technische Universität Darmstadt under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The Technische Universität Darmstadt
// licenses this file to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

[[sect_settings_bulk_processing]]
= Bulk Processing Settings

====
CAUTION: Experimental feature.
====

This section describes the global settings related to the bulk processing module.

.Recommender settings overview
[cols="4*", options="header"]
|===
| Setting
| Description
| Default
| Example

| `bulk-processing.enabled`
| enable/disable bulk processing
| `false`
| `true`
|===
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ This git repository can also be used to push to a remote repository, e.g. saving
| Default
| Example

| versioning.enabled
| `versioning.enabled`
| enable/disable versioning
| false
| true
| `false`
| `true`
|===

0 comments on commit 6537664

Please sign in to comment.