Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange match span #328

Open
dishmint opened this issue May 30, 2024 · 2 comments
Open

Strange match span #328

dishmint opened this issue May 30, 2024 · 2 comments
Assignees
Labels
bug Wrong behavior strange This doesn't seem right

Comments

@dishmint
Copy link
Owner

I don't understand why coolcar.cool was matched as an adjective.

In[107]:= 
LexicalCases["coolcar.cool car", 
  TypeToken["Adjective"] ~~ " car"]["Data"]

Out[107]= {<|"Match" -> "coolcar.cool car", "Position" -> {{1, 16}}|>}
@dishmint dishmint added bug Wrong behavior strange This doesn't seem right labels May 30, 2024
@dishmint dishmint self-assigned this May 30, 2024
@dishmint
Copy link
Owner Author

This means the model is not identifying canonical Adjectives, but inferring them.

@dishmint
Copy link
Owner Author

dishmint commented Jul 12, 2024

In[9]:= ExpandPattern["coolcar.cool car", TypeToken["Adjective"]] 

Out[9]= "coolcar.cool"

In[10]:= ExpandPattern["coolcar cool car", TypeToken["Adjective"]]

Out[10]= "cool"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Wrong behavior strange This doesn't seem right
Projects
Status: Investigate
Development

No branches or pull requests

1 participant