Этот коммит содержится в:
iulusoy 2023-02-14 02:31:04 -08:00
родитель 388ff19b38
Коммит d8662b5d72
2 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@ -29,6 +29,20 @@ pip install .
```
This will install the package and its dependencies locally.
## Installation on Windows
Some modules use [lavis]() to anaylse image content. To enable this functionality on Windows OS, you need to install some dependencies that are not available by default or can be obtained from the command line:
1. Download [Visual C++](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170) and install (see also [here](https://github.com/philferriere/cocoapi)).
1. Then install the coco API from Github
```
pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"
```
1. Now you can install the package by navigating to the misinformation directory and typing
```
pip install .
```
in the command prompt.
# Usage
There are sample notebooks in the `misinformation/notebooks` folder for you to explore the package:

Просмотреть файл

@ -22,4 +22,5 @@ https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.4.1
jupyterlab
spacytextblob
textblob
git+https://github.com/sloria/TextBlob.git@dev
git+https://github.com/sloria/TextBlob.git@dev
git+https://github.com/salesforce/LAVIS.git@main