Skip to content

Commit

Permalink
MET-6231 add LLM and NER flags (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeortizquan authored Nov 25, 2024
1 parent b243b4a commit 107b57e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<properties>
<version.java>21</version.java>
<version.springdoc-openapi-starter-webmvc-ui>2.3.0</version.springdoc-openapi-starter-webmvc-ui>
<version.metis>13-SNAPSHOT</version.metis>
<version.metis>14-SNAPSHOT</version.metis>
<version.metis.normalization>14-SNAPSHOT</version.metis.normalization>
<version.spring.boot>3.2.3</version.spring.boot>
<version.europeana>2.16.7</version.europeana>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ private void doDeBiasAndGenerateReport(List<Record> recordList, List<DeBiasRepor
// process by language in batches of DEBIAS_CLIENT_PARTITION_SIZE items per request
partitionList(recordDescriptions, DEBIAS_CLIENT_PARTITION_SIZE).forEach(partition -> {
BiasInputLiterals biasInputLiterals = new BiasInputLiterals();
biasInputLiterals.setUseLLM(true);
biasInputLiterals.setUseNER(true);
biasInputLiterals.setValues(partition.stream().map(DeBiasInputRecord::literal).toList());
biasInputLiterals.setLanguage(deBiasSupportedLanguage.getCodeISO6391());
try {
Expand Down

0 comments on commit 107b57e

Please sign in to comment.