Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Dec 6, 2024
1 parent cfc25a7 commit 0ceb262
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/api.reliefweb.int/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const extractAffectedAreasFromDisasters = async (

console.log(result.content);
console.log(`----- ----- ----- ${llmModel.modelName} ----- ----- <<<<<`);
console.log("\n");
};

for (const llmModel of ollamaModels) {
Expand Down Expand Up @@ -95,14 +94,12 @@ Countries: ${disasterCountries}
Types: ${disasterTypes}
${disasterOverview}`;

console.log("===== ===== ===== =====");
console.log("===== ===== ===== =====");
console.log("description length", disasterDescription.length);
// lengthが 2000 文字以上だったらスキップ
if (disasterDescription.length > 2000) {
continue;
}
console.log("===== ===== ===== =====");
console.log("description length", disasterDescription.length);
// disasterIdとdisasterNameとdisasterPrimaryCountryNameとdisasterTypeNameを改行区切りで出力
console.log(
`ID: ${disasterId}
Expand Down

0 comments on commit 0ceb262

Please sign in to comment.