diff --git a/duckling-fork-chinese/core/src/main/resources/places4.json b/duckling-fork-chinese/core/src/main/resources/places4.json index 4e1b801..a348909 100644 --- a/duckling-fork-chinese/core/src/main/resources/places4.json +++ b/duckling-fork-chinese/core/src/main/resources/places4.json @@ -2298,7 +2298,7 @@ "id" : 3712, "category" : "城市", "name" : "吉林市", - "alias" : [ "吉林" ], + "alias" : [ ], "code" : "220200000000", "partOf" : 2982 }, { @@ -4174,7 +4174,7 @@ "id" : 3980, "category" : "城市", "name" : "海南藏族自治州", - "alias" : [ "海南" ], + "alias" : [ ], "code" : "632500000000", "partOf" : 3004 }, { @@ -4447,7 +4447,7 @@ "id" : 4019, "category" : "城市", "name" : "嘉义县", - "alias" : [ "嘉义" ], + "alias" : [ ], "code" : "713000000000", "partOf" : 3007 }, { @@ -4615,7 +4615,7 @@ "id" : 4043, "category" : "区县", "name" : "和平区", - "alias" : [ "和平" ], + "alias" : [ ], "code" : "120101000000", "partOf" : 3662 }, { @@ -5273,7 +5273,7 @@ "id" : 4137, "category" : "区县", "name" : "邢台县", - "alias" : [ "邢台" ], + "alias" : [ ], "code" : "130521000000", "partOf" : 3667 }, { @@ -7905,7 +7905,7 @@ "id" : 4513, "category" : "区县", "name" : "和平区", - "alias" : [ "和平" ], + "alias" : [ ], "code" : "210102000000", "partOf" : 3697 }, { @@ -8003,7 +8003,7 @@ "id" : 4527, "category" : "区县", "name" : "中山区", - "alias" : [ "中山" ], + "alias" : [ ], "code" : "210202000000", "partOf" : 3698 }, { @@ -8430,7 +8430,7 @@ "id" : 4588, "category" : "区县", "name" : "阜新蒙古族自治县", - "alias" : [ "阜新" ], + "alias" : [ ], "code" : "210921000000", "partOf" : 3705 }, { @@ -8955,7 +8955,7 @@ "id" : 4663, "category" : "区县", "name" : "西安区", - "alias" : [ "西安" ], + "alias" : [ ], "code" : "220403000000", "partOf" : 3714 }, { @@ -10026,7 +10026,7 @@ "id" : 4816, "category" : "区县", "name" : "西安区", - "alias" : [ "西安" ], + "alias" : [ ], "code" : "231005000000", "partOf" : 3729 }, { @@ -11244,7 +11244,7 @@ "id" : 4990, "category" : "区县", "name" : "西湖区", - "alias" : [ "西湖" ], + "alias" : [ ], "code" : "330106000000", "partOf" : 3747 }, { @@ -13540,7 +13540,7 @@ "id" : 5318, "category" : "区县", "name" : "西湖区", - "alias" : [ "西湖" ], + "alias" : [ ], "code" : "360103000000", "partOf" : 3783 }, { @@ -13568,14 +13568,14 @@ "id" : 5322, "category" : "区县", "name" : "新建区", - "alias" : [ "新建" ], + "alias" : [ ], "code" : "360112000000", "partOf" : 3783 }, { "id" : 5323, "category" : "区县", "name" : "南昌县", - "alias" : [ "南昌" ], + "alias" : [ ], "code" : "360121000000", "partOf" : 3783 }, { @@ -14233,7 +14233,7 @@ "id" : 5417, "category" : "区县", "name" : "上饶县", - "alias" : [ "上饶" ], + "alias" : [ ], "code" : "361121000000", "partOf" : 3793 }, { @@ -15941,7 +15941,7 @@ "id" : 5661, "category" : "区县", "name" : "安阳县", - "alias" : [ "安阳" ], + "alias" : [ ], "code" : "410522000000", "partOf" : 3815 }, { @@ -16067,7 +16067,7 @@ "id" : 5679, "category" : "区县", "name" : "新乡县", - "alias" : [ "新乡" ], + "alias" : [ ], "code" : "410721000000", "partOf" : 3817 }, { @@ -16270,7 +16270,7 @@ "id" : 5708, "category" : "区县", "name" : "濮阳县", - "alias" : [ "濮阳" ], + "alias" : [ ], "code" : "410928000000", "partOf" : 3819 }, { @@ -17425,7 +17425,7 @@ "id" : 5873, "category" : "区县", "name" : "荆州区", - "alias" : [ "荆州" ], + "alias" : [ ], "code" : "421003000000", "partOf" : 3837 }, { @@ -17642,7 +17642,7 @@ "id" : 5904, "category" : "区县", "name" : "恩施市", - "alias" : [ "恩施" ], + "alias" : [ ], "code" : "422801000000", "partOf" : 3841 }, { @@ -17775,7 +17775,7 @@ "id" : 5923, "category" : "区县", "name" : "长沙县", - "alias" : [ "长沙" ], + "alias" : [ ], "code" : "430121000000", "partOf" : 3843 }, { @@ -18825,7 +18825,7 @@ "id" : 6073, "category" : "区县", "name" : "白云区", - "alias" : [ "白云" ], + "alias" : [ ], "code" : "440111000000", "partOf" : 3857 }, { @@ -19553,7 +19553,7 @@ "id" : 6177, "category" : "区县", "name" : "和平县", - "alias" : [ "和平" ], + "alias" : [ ], "code" : "441624000000", "partOf" : 3870 }, { @@ -22577,7 +22577,7 @@ "id" : 6609, "category" : "区县", "name" : "白云区", - "alias" : [ "白云" ], + "alias" : [ ], "code" : "520113000000", "partOf" : 3920 }, { @@ -25559,7 +25559,7 @@ "id" : 7035, "category" : "区县", "name" : "安宁区", - "alias" : [ "安宁" ], + "alias" : [ ], "code" : "620105000000", "partOf" : 3962 }, { @@ -26826,7 +26826,7 @@ "id" : 7216, "category" : "区县", "name" : "克拉玛依区", - "alias" : [ "克拉玛依" ], + "alias" : [ ], "code" : "650203000000", "partOf" : 3990 }, { @@ -26889,7 +26889,7 @@ "id" : 7225, "category" : "区县", "name" : "昌吉市", - "alias" : [ "昌吉" ], + "alias" : [ ], "code" : "652301000000", "partOf" : 3993 }, { diff --git a/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/place/PlaceTest.scala b/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/place/PlaceTest.scala index dd9523b..5d23bc8 100644 --- a/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/place/PlaceTest.scala +++ b/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/place/PlaceTest.scala @@ -45,7 +45,7 @@ class PlaceTest extends UnitSpec { ("内蒙古", List("中华人民共和国/内蒙古自治区")), ("香港", List("中华人民共和国/香港特别行政区")), ("湖北", List("中华人民共和国/湖北省")), - ("长沙", List("中华人民共和国/湖南省/长沙市/长沙县", "中华人民共和国/湖南省/长沙市")), + ("长沙", List("中华人民共和国/湖南省/长沙市")), ("武汉", List("中华人民共和国/湖北省/武汉市")), ("洪山区", List("中华人民共和国/湖北省/武汉市/洪山区")), ("永城市", List("中华人民共和国/河南省/商丘市/永城市")),