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'] |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
Hi Saurav Thanks |
Beta Was this translation helpful? Give feedback.
-
import pytextrank |
Beta Was this translation helpful? Give feedback.
-
it is working fine on jupyter but not on vs code |
Beta Was this translation helpful? Give feedback.
-
Hi Saurav,
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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
|
Beta Was this translation helpful? Give feedback.
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
venv
or other virtualization you're currently working in.I say that this is "obscure" because one of the lead developers for
spaCy
and I worked for several days to troubleshoot an issue, only to realize that Jupyter was running an entirely different environment.If you are using
venv
and launch Jupyter directly fromvenv/bin
then it will at least de…