Skip to content

Not list out the snippets #9

Description

@lampts

Thank for such a wonderful tool to do visualisation.

I got the error after running on small dataset as attached. There are 1 mention including apple term but the snippets on current is empty.

screen shot 2017-03-13 at 2 47 43 pm

What's wrong with that?
Regards,
Laam

Activity

  1. JasonKessler commented on Mar 13, 2017

    @JasonKessler
    Owner

    Hi Laam,

    Thanks for reporting this error, and for the compliment!

    I'm having trouble seeing the attached dataset. It would be great if you could upload the actual HTML file produced.

    The mention counts displayed on the visualization were determined in Python via spaCy's (or whatever NLP engine you used's) tokenizer, while the excerpts listed are found through a Javascript regex, which may be less robust to special characters.

    Jason

  2. lampts commented on Mar 14, 2017

    @lampts
    Author

    Yes, it seems the mismatched between mentions by spacy and javascript regex to get related snippets. I can share you another file which has the same issue:
    (1) query exxon: there is no snippets related to the Past (x axis)
    (2) terms: brexit, ipo are not clickable

    The attached is for reproducible.

    FINZINE-Visualization-trendy-vs-past-v2.html.zip

  3. JasonKessler commented on Mar 14, 2017

    @JasonKessler
    Owner

    Thanks a lot for including the full output. That really helped in debugging this issue. I found it, and there will be a fix in the next release (which is coming in a few minutes).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions