Skip to content

Commit 6a96534

Browse files
author
gustavo-castro_Localiza
committed
Fix: turning methods from private to public
1 parent 580b7e4 commit 6a96534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tp03/src/storage/structures/ListaInvertida/ListaInvertidaUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public String[] extractTerms(String texto) {
6565
return result.toArray(new String[0]);
6666
}
6767

68-
private float calcFrequencia(String texto, String termo) {
68+
public float calcFrequencia(String texto, String termo) {
6969
// Normalize the input text and term
7070
texto = texto.toLowerCase();
7171
termo = termo.toLowerCase();
@@ -85,7 +85,7 @@ private float calcFrequencia(String texto, String termo) {
8585
return (float) count / termos.length;
8686
}
8787

88-
private float calcularIDF(ListaInvertida lista, String termo) throws Exception {
88+
public float calcularIDF(ListaInvertida lista, String termo) throws Exception {
8989
int totalDocumentos = lista.numeroEntidades();
9090
ElementoLista[] elementos = lista.read(termo);
9191
int documentosComTermo = (elementos != null) ? elementos.length : 0;

0 commit comments

Comments
 (0)