|
|
|
@ -112,9 +112,7 @@ public class A15 {
|
|
|
|
|
List<String> finalList = new ArrayList<>();
|
|
|
|
|
for (int i = 0; i < res.size(); i++) {
|
|
|
|
|
String re = res.get(i);
|
|
|
|
|
String question = "我将给你提供一大段文字,帮我总结下入园或招生情况,划分两个阶段:(1)过去几年入园、招生情况 (2)入园、招生未来发展预测。尽量保留文中原话,一个阶段不要超过30字。不要使用markdown语法。";
|
|
|
|
|
question += "示例: 1. 与2022年相比,寻甸县未来几年,学前教育幼儿入园人数增长不大,至2035年预计在6800左右,仅增加几百人";
|
|
|
|
|
question += "2. 未来镇区幼儿入园人数将逐年增加,而乡村幼儿入园人数将明显减少。";
|
|
|
|
|
String question = "我将给你提供一大段文字,帮我截取里面的语句,不要做修改,把关键的语句截取出来即可,详细的描述可以不要,不要使用markdown语法。每句话开头类似这样 1. 2. 3.,以此类推.";
|
|
|
|
|
question += "下面是文字内容:";
|
|
|
|
|
question += re;
|
|
|
|
|
finalList.add(removeEmptyLines(callTongYiQianWen(question)));
|
|
|
|
@ -122,10 +120,7 @@ public class A15 {
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < res.size(); i++) {
|
|
|
|
|
String re = res.get(i);
|
|
|
|
|
String question = "我将给你提供一大段文字,帮我总结下在园或在校生情况,划分两个阶段:(1)过去几年在园、在校生情况 (2)在园、在校生未来发展预测。尽量保留文中原话,一个阶段不要超过30字。不要使用markdown语法。";
|
|
|
|
|
question += "示例: 1. 与2022年相比,寻甸县未来几年,学前教育幼儿在园人数将略有增长,至2035年预计达到1.85万左右,增加1700人左右;";
|
|
|
|
|
question += "1. 与2022年相比,寻甸县未来几年,学前教育幼儿在园人数将略有增长,至2035年预计达到1.85万左右,增加1700人左右; " +
|
|
|
|
|
"2. 未来镇区幼儿在园人数也将持续增长,而乡村幼儿在园人数将明显减少,这与寻甸县持续的高城镇化率密切相关。 ";
|
|
|
|
|
String question = "我将给你提供一大段文字,帮我截取里面的语句,不要做修改,把关键的语句截取出来即可,详细的描述可以不要,不要使用markdown语法。每句话开头类似这样 1. 2. 3.,以此类推.";
|
|
|
|
|
question += "下面是文字内容:";
|
|
|
|
|
question += re;
|
|
|
|
|
finalList.add(removeEmptyLines(callTongYiQianWen(question)));
|
|
|
|
@ -188,9 +183,33 @@ public class A15 {
|
|
|
|
|
List<String> list = getDocxJYFZXZ(file.getAbsolutePath());
|
|
|
|
|
if (list == null) continue;
|
|
|
|
|
Row outRow = outSheet.createRow(++rowIndex);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "入园入校", list.get(0), list.get(1), list.get(2), list.get(3)), dataStyle);
|
|
|
|
|
|
|
|
|
|
String x = list.get(0);
|
|
|
|
|
String y = list.get(4);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "学前", "入园幼儿", x.split("。")[0] + ";", x.split("。")[1]+"。"), dataStyle);
|
|
|
|
|
outRow = outSheet.createRow(++rowIndex);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "学前", "在园幼儿", y.split("。")[0] + ";", y.split("。")[1]+"。"), dataStyle);
|
|
|
|
|
|
|
|
|
|
x = list.get(1);
|
|
|
|
|
y = list.get(5);
|
|
|
|
|
outRow = outSheet.createRow(++rowIndex);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "小学", "招生总数", x.split("。")[0] + ";", x.split("。")[1]+"。"), dataStyle);
|
|
|
|
|
outRow = outSheet.createRow(++rowIndex);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "小学", "在校生总数", y.split("。")[0] + ";", y.split("。")[1]+"。"), dataStyle);
|
|
|
|
|
|
|
|
|
|
x = list.get(2);
|
|
|
|
|
y = list.get(6);
|
|
|
|
|
outRow = outSheet.createRow(++rowIndex);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "初中", "招生总数", x.split("。")[0] + ";", x.split("。")[1]+"。"), dataStyle);
|
|
|
|
|
outRow = outSheet.createRow(++rowIndex);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "初中", "在校生总数", y.split("。")[0] + ";", y.split("。")[1]+"。"), dataStyle);
|
|
|
|
|
|
|
|
|
|
x = list.get(3);
|
|
|
|
|
y = list.get(7);
|
|
|
|
|
outRow = outSheet.createRow(++rowIndex);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "高中", "招生总数", x.split("。")[0] + ";", x.split("。")[1]+"。"), dataStyle);
|
|
|
|
|
outRow = outSheet.createRow(++rowIndex);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "在园在校", list.get(4), list.get(5), list.get(6), list.get(7)), dataStyle);
|
|
|
|
|
DsKit.putData(outRow, Arrays.asList(cityName, areaName, "高中", "在校生总数", y.split("。")[0] + ";", y.split("。")[1]+"。"), dataStyle);
|
|
|
|
|
} catch (Exception err) {
|
|
|
|
|
System.out.println(cityName + " " + areaName + "在整理数据时失败,请人工检查!");
|
|
|
|
|
}
|
|
|
|
|