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

LexicalDispersionPlot fails in some cases #258

Closed
dishmint opened this issue Jan 17, 2023 · 2 comments · Fixed by #263
Closed

LexicalDispersionPlot fails in some cases #258

dishmint opened this issue Jan 17, 2023 · 2 comments · Fixed by #263
Assignees
Labels
bug Wrong behavior

Comments

@dishmint
Copy link
Owner

LexicalDispersionPlot failed for the search index object example. I think it's because the number of matches is quite large.

@dishmint dishmint added the bug Wrong behavior label Jan 17, 2023
@dishmint dishmint self-assigned this Jan 17, 2023
@dishmint
Copy link
Owner Author

Image

@dishmint
Copy link
Owner Author

There are too many keys, ~25000. There's no way the plot will render 25000 frame ticks on the y axis.

In[3]:= index = CreateSearchIndex["ExampleData/Text"]

Out[3]= SearchIndexObject[File["/Users/faizonzaman/Library/Mathematica/SearchIndices/25d80c63-\
b40f-42a3-bc88-02562fc88f50"]]

In[4]:= indexResults = LexicalCases[index -> All, WordToken[1] ~~ TextType["Verb"]];

In[36]:= 
indexResults["Dataset"][All, "Match"] // Normal // DeleteDuplicates // Length

Out[36]= 25570

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Wrong behavior
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant