Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

enable keeping matched expressions.#1308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jrsperry wants to merge7 commits intostanfordnlp:dev
base:dev
Choose a base branch
Loading
fromjrsperry:enable_keeping_nested_and_overlapped_matches

Conversation

@jrsperry
Copy link

All edits are part of the public domain.

This provides more flexibility to the CoreMapExpressionExtractor and the matches returned. I have a use case where I want to see all the available matches, and the name of the rule as specified in the language.

I personally am not using the CompositeRule in my work, but I applied similar updates to the CompositeRule.

this.tokensAnnotationKey =EnvLookup.getDefaultTokensAnnotationKey(env);
if (env !=null) {
this.collapseExtractionRules =Objects.equals((Boolean)env.get("collapseExtractionRules"),true);
this.keepNestedMatches =Objects.equals((Boolean)env.get("keepNestedMatches"),true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The truth is, I know almost nothing about tokensregex, and I would say the people still at Stanford are generally in the same boat. Why is it necessary to useObjects.equals here? I see that it was done for a differentBoolean earlier as well

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

also, should the default be false instead? that way the behavior doesn't change for existing use cases

@AngledLuffa
Copy link
Contributor

In general I don't see any reason not to merge this, but just to confirm, the default settings means it won't change behavior for any existing tokensregex?

@AngledLuffa
Copy link
Contributor

Ping?

returntext;
}

publicStringgetName() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

how is this related?

@jrsperry
Copy link
Author

Sorry I don't use Github enough, and as a result this went very stale. Yes the intent was to not change default behavior, rather just add some functionality to the match expression. My use was such that I wanted to use the match expressions more on their own, so I wanted to keep overlapping expressions. This next week I can look at this again and see what additional changes may be needed or reviewed.

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

Reviewers

@AngledLuffaAngledLuffaAngledLuffa left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@jrsperry@AngledLuffa@manning

[8]ページ先頭

©2009-2025 Movatter.jp