Skip to content

Conversation

@mgrange1998
Copy link
Contributor

Summary: This diff adds support to text inclusion analysis node for returning the matched text from word level longest common subsequence. This allows us to inspect the matched text, and find the length of the matched text compared to the target and generated text.

Differential Revision: D89493658

@meta-codesync
Copy link

meta-codesync bot commented Dec 30, 2025

@mgrange1998 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89493658.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 30, 2025
mgrange1998 added a commit to mgrange1998/PrivacyGuard-1 that referenced this pull request Jan 27, 2026
…bsequence (facebookresearch#92)

Summary:

This diff adds support to text inclusion analysis node for returning the matched text from word level longest common subsequence. This allows us to inspect the matched text, and find the length of the matched text compared to the target and generated text.

Reviewed By: lucamelis

Differential Revision: D89493658
… cleaned text (facebookresearch#93)

Summary:

This adds supported for removing consecutive whitespace before comparing text inclusion. 

Example:
```
I ate \n the apple => I ate    the apple
```
Would not match as equal to, as the new line would map to another space. 
```
I ate the apple
```

This diff adds support for squashing consecutive whitespace after the filtering so verbatim text is matched correctly.

Reviewed By: lucamelis

Differential Revision: D89493643
…bsequence (facebookresearch#92)

Summary:

This diff adds support to text inclusion analysis node for returning the matched text from word level longest common subsequence. This allows us to inspect the matched text, and find the length of the matched text compared to the target and generated text.

Reviewed By: lucamelis

Differential Revision: D89493658
@meta-codesync
Copy link

meta-codesync bot commented Jan 27, 2026

This pull request has been merged in 1dcc960.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants