Skip to content

Commit

Permalink
Update atomic_facts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AakritiKinra authored Jan 1, 2025
1 parent b7eac00 commit 62fe55b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llments/eval/factscore/atomic_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from rank_bm25 import BM25Okapi
import os
from nltk.tokenize import sent_tokenize
from typing import List, Tuple, Optional, Any, Set, Sequence, cast
from typing import List, Tuple, Optional, Any, Set, cast

from factscore.openai_lm import OpenAIModel

Expand Down Expand Up @@ -365,7 +365,7 @@ def postprocess_atomic_facts(
verbs = ["born.", " appointed.", " characterized.", " described.", " known.", " member.", " advocate.", "served.", "elected."]
permitted_verbs = ["founding member."]

atomic_facts: List[List[Sequence[str]]] = []
atomic_facts: List[Tuple[str, List[str]]] = []
new_atomic_facts: List[Tuple[str, List[str]]] = []
new_para_breaks: List[int] = []

Expand Down

0 comments on commit 62fe55b

Please sign in to comment.