Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4434 - Ability to apply a recommender to all documents in a project #4492

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`
|===

Loading