Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sidjha1 committed Nov 23, 2024
2 parents 85d096c + 15f469c commit 441d1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/op_examples/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"masked_col_2": "The age of the person",
}

new_df = df.sem_extract(input_cols, output_cols)
new_df = df.sem_extract(input_cols, output_cols, extract_quotes=True)
print(new_df)

# A description can also be omitted for each output column
Expand Down
2 changes: 1 addition & 1 deletion lotus/sem_ops/sem_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __call__(
self,
input_cols: list[str],
output_cols: dict[str, str | None],
extract_quotes: bool = True,
extract_quotes: bool = False,
postprocessor: Callable[[list[str]], SemanticExtractPostprocessOutput] = extract_postprocess,
return_raw_outputs: bool = False,
) -> pd.DataFrame:
Expand Down

0 comments on commit 441d1ed

Please sign in to comment.