]> git.basschouten.com Git - openhab-addons.git/blob
1c2b486e938e7bbea5fe1165f8d27a585a0774d8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.voice.actiontemplatehli.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link ActionTemplateInterpreterConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Miguel Álvarez - Initial contribution
21  */
22 @NonNullByDefault
23 public class ActionTemplateInterpreterConfiguration {
24     /**
25      * Convert the input text to lower case before processing
26      */
27     public boolean lowerText = false;
28     /**
29      * Enable case sensitivity for pos and ner static values.
30      */
31     public boolean caseSensitive = false;
32     /**
33      * Message for successful command
34      */
35     public String commandSentMessage = "Done";
36     /**
37      * Message for unsuccessful processing
38      */
39     public String unhandledMessage = "I can not do that";
40     /**
41      * Message for error during processing
42      */
43     public String failureMessage = "There was an error";
44     /**
45      * POS tags that will be optional when comparing
46      */
47     public String optionalLanguageTags = "";
48     /**
49      * Prefer simple tokenizer over white space tokenizer
50      */
51     public boolean useSimpleTokenizer = false;
52     /**
53      * Enables build-in detokenization based on original text, otherwise string join by space is used
54      */
55     public boolean detokenizeOptimization = true;
56 }