mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 05:43:51 +00:00
(improvement)(chat) remove domain in wordservice and the model id takes precedence over the number of model aliases (#87)
This commit is contained in:
@@ -8,11 +8,13 @@ import org.apache.commons.lang3.StringUtils;
|
||||
*/
|
||||
public enum DictWordType {
|
||||
METRIC("metric"),
|
||||
|
||||
DIMENSION("dimension"),
|
||||
|
||||
VALUE("value"),
|
||||
|
||||
DOMAIN("dm"),
|
||||
MODEL("model"),
|
||||
|
||||
ENTITY("entity"),
|
||||
|
||||
NUMBER("m"),
|
||||
@@ -44,7 +46,7 @@ public enum DictWordType {
|
||||
//domain
|
||||
String[] natures = nature.split(DictWordType.NATURE_SPILT);
|
||||
if (natures.length == 2 && StringUtils.isNumeric(natures[1])) {
|
||||
return DOMAIN;
|
||||
return MODEL;
|
||||
}
|
||||
//dimension value
|
||||
if (natures.length == 3 && StringUtils.isNumeric(natures[1]) && StringUtils.isNumeric(natures[2])) {
|
||||
|
||||
Reference in New Issue
Block a user