different output #261
|
when i ran textrank on jupyter there is difference in output my querry=QueryExtractor("skydiving in dubai") it is detect by vs code ['dubai'] |
Replies: 6 comments 1 reply
|
Hi Saurav Thanks |
|
import pytextrank |
|
it is working fine on jupyter but not on vs code |
|
Hi Saurav,
|
|
Hi @sauravsinhaa, It really helps to have the code formatted, otherwise we will have difficulty understanding about the indents, Python control flow, etc., in your code. A quick way to do that is simply to place three back-tick characters As another option, you can copy/paste into a "gist" at https://gist.github.com/ and then share the link in your GitHub issue. |
Ah-ha! @sauravsinhaa, this is probably the most important point :) One thing which is rather obscure and tricky about Jupyter is that when you run a Jupyter notebook locally from a command line, the Python environment gets determined by your shell environment variables, not by whatever Python I say that this is "obscure" because one of the lead developers for If you are using Otherwise, your shell will determine which Python executable gets run, not your locally specified one. Then your other Python library dependencies may all change suddenly. FWIW, there isn't any code within BTW, to @Ankush-Chander's point, it really helps to install and use
|
Ah-ha! @sauravsinhaa, this is probably the most important point :)
One thing which is rather obscure and tricky about Jupyter is that when you run a Jupyter notebook locally from a command line, the Python environment gets determined by your shell environment variables, not by whatever Python
venvor other virtualization you're currently working in.I say that this is "obscure" because one of the lead developers for
spaCyand I worked for several days to troubleshoot an issue, only to realize that Jupyter was running an entirely different environment.If you are using
venvand launch Jupyter directly fromvenv/binthen it will at least de…