Skip to content

Commit

Permalink
🔥 fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-schmitt committed May 31, 2024
1 parent 884cdfc commit 7431423
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def __number_patient_journey_sentences(patient_journey_sentences: List[str]) ->

@staticmethod
def __extract_activities(
patient_journey_numbered: str, condition: Optional[str], number_of_senteces: int
patient_journey_numbered: str,
condition: Optional[str],
number_of_sentences: int,
) -> pd.DataFrame:
"""
Converts a Patient Journey, where every sentence is numbered, to a DataFrame with the activity labels by
Expand All @@ -91,7 +93,7 @@ def __extract_activities(
" #", expand=True
)
except ValueError:
scaling_factor = df.shape[0] / (number_of_senteces - 1)
scaling_factor = df.shape[0] / (number_of_sentences - 1)
df["sentence_id"] = int(df.reset_index().index * scaling_factor)

return df

0 comments on commit 7431423

Please sign in to comment.