2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.voice.actiontemplatehli.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link ActionTemplateInterpreterConfiguration} class contains fields mapping thing configuration parameters.
20 * @author Miguel Álvarez - Initial contribution
23 public class ActionTemplateInterpreterConfiguration {
25 * Convert the input text to lower case before processing
27 public boolean lowerText = false;
29 * Enable case sensitivity for pos and ner static values.
31 public boolean caseSensitive = false;
33 * Message for successful command
35 public String commandSentMessage = "Done";
37 * Message for unsuccessful processing
39 public String unhandledMessage = "I can not do that";
41 * Message for error during processing
43 public String failureMessage = "There was an error";
45 * POS tags that will be optional when comparing
47 public String optionalLanguageTags = "";
49 * Prefer simple tokenizer over white space tokenizer
51 public boolean useSimpleTokenizer = false;
53 * Enables build-in detokenization based on original text, otherwise string join by space is used
55 public boolean detokenizeOptimization = true;