|
52 | 52 | <li class="toctree-l1"><a class="reference internal" href="features_conceptual/index.html">Features: Conceptual Documentation</a></li> |
53 | 53 | <li class="toctree-l1 current"><a class="current reference internal" href="#">Examples</a><ul> |
54 | 54 | <li class="toctree-l2"><a class="reference internal" href="#getting-started">Getting Started</a><ul> |
| 55 | +<li class="toctree-l3"><a class="reference internal" href="#troubleshooting">Troubleshooting</a></li> |
55 | 56 | <li class="toctree-l3"><a class="reference internal" href="#import-recommendations-virtual-environment-and-pip">Import Recommendations: Virtual Environment and Pip</a></li> |
56 | 57 | </ul> |
57 | 58 | </li> |
|
100 | 101 | <section id="getting-started"> |
101 | 102 | <h2>Getting Started<a class="headerlink" href="#getting-started" title="Link to this heading"></a></h2> |
102 | 103 | <p>To use our tool, please ensure that you have Python >= 3.10 installed and a working version of <a class="reference external" href="https://pypi.org/project/pip/">pip</a>, which is Python’s package installer. Then, in your local environment, run the following:</p> |
103 | | -<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="n">team_comm_tools</span> |
| 104 | +<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>team_comm_tools |
104 | 105 | </pre></div> |
105 | 106 | </div> |
106 | | -<p>You will also need to ensure that Spacy and NLTK are installed in addition to the required dependencies. The Spacy model should download <code class="docutils literal notranslate"><span class="pre">en_core_web_sm</span></code> automatically upon install. If you get an error that en_core_web_sm is not found, you should run the following in your terminal:</p> |
107 | | -<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">spacy</span> <span class="n">download</span> <span class="n">en_core_web_sm</span> |
108 | | -</pre></div> |
109 | | -</div> |
110 | | -<p>Additionally, we require several NLTK dependencies. If you don’t have them in your environment, run this one-liner in your terminal:</p> |
111 | | -<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">import_nltk</span> |
| 107 | +<p>This command will automatically install our package and all required dependencies.</p> |
| 108 | +<section id="troubleshooting"> |
| 109 | +<h3>Troubleshooting<a class="headerlink" href="#troubleshooting" title="Link to this heading"></a></h3> |
| 110 | +<p>In the event that some dependency installations fail (for example, you may get an error that <code class="docutils literal notranslate"><span class="pre">en_core_web_sm</span></code> from Spacy is not found, or that there is a missing NLTK resource), please run this simple one-line command in your terminal, which will force the installation of Spacy and NLTK dependencies:</p> |
| 111 | +<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>download_resources |
112 | 112 | </pre></div> |
113 | 113 | </div> |
| 114 | +<p>If you encounter a further issue in which the ‘wordnet’ package from NLTK is not found, it may be related to a known bug in NLTK in which the wordnet package does not unzip automatically. If this is the case, please follow the instructions to manually unzip it, documented in <a class="reference external" href="https://github.com/nltk/nltk/issues/3028">this thread</a>.</p> |
| 115 | +</section> |
114 | 116 | <section id="import-recommendations-virtual-environment-and-pip"> |
115 | 117 | <h3>Import Recommendations: Virtual Environment and Pip<a class="headerlink" href="#import-recommendations-virtual-environment-and-pip" title="Link to this heading"></a></h3> |
116 | 118 | <p><strong>We strongly recommend using a virtual environment in Python to run the package.</strong> We have several specific dependency requirements. One important one is that we are currently only compatible with numpy < 2.0.0 because <a class="reference external" href="https://numpy.org/devdocs/release/2.0.0-notes.html#changes">numpy 2.0.0 and above</a> made significant changes that are not compatible with other dependencies of our package. As those dependencies are updated, we will support later versions of numpy.</p> |
|
0 commit comments