semvec/pypi-packages huggingface dataset:
etk 2.2.8
extraction toolkit

# ETK: Information Extraction Toolkit

ETK is a Python library for high precision information extraction from many document formats.
It proivdes a flexible framework of **composable extractors** that enables you to combine a host of **predefined extractors** provided in ETK with custom extractors that you may need to develop for your application.
It supports extraction from HTML pages, text documents, CSV and Excel files and JSON documents.
ETK is open-source software, released under the MIT license.



![MIT License](https://img.shields.io/badge/license-MIT-blue.svg) ![travis ci](https://travis-ci.org/usc-isi-i2/etk.svg?branch=master)

## Documentation
Read the documentation [here](https://usc-isi-i2.github.io/etk/)

## Features

* Extraction from HTML, text, CSV, Excel, JSON
* High-precision predefined extractors for common entities (dates, phones, email, cities, ...)
* Extraction of microdata, schema.org and RDFa markup
* Integration with [spaCy](https://github.com/explosion/spaCy) for text processing
* Automatic identification and extraction of HTML tables containing data
* Automatic identification and extraction of time series
* Semi-automatic generation of Web wrappers
* Scalable execution and management of extraction pipelines
* Automatic provenance recording

# Releases

- [Source code](https://github.com/usc-isi-i2/etk/releases)
- [Docker images](https://hub.docker.com/r/uscisii2/etk/tags/)

## Installation

<table>
  <tr><td><b>Operating system:</td><td>macOS / OS X, Linux, Windows</td></tr>
  <tr><td><b>Python version:</td><td>Python 3.6+</td></tr>
<table>

Install using pip

```
pip install etk
```

### OR

You can also install ETK Manually. Clone or fork this repository, open a terminal window and in the directory where you downloaded ETK type the following commands

```
python3 -m venv etk2_env
source etk2_env/bin/activate
pip install -e .
```

Load the spacy modules
```
python -m spacy download en_core_web_sm
python -m spacy download en_core_web_lg (optional)
```
Note: If the above commands fail with s SSL error, run this:
```
python -m spacy download en_core_web_sm-2.0.0 --direct
```
To deactivate this virtual environment
```
deactivate
```

## Run Tests

`python -m unittest discover`

## Run ETK CLI

> ETK needs to be installed as python package.

`python -m etk <command> [options]`

For example:

`python -m etk regex_extractor "a.*c" "abcd"`

## Docker

Build image

`docker build -t etk:test .`

Run container

`docker run -it etk:dev /bin/bash`

Mount local volume for test

`docker run -it -v $(pwd):/app/etk etk:dev /bin/bash`
axonbtc 0.1
Axon is an artificially intelligent agent that trades bitcoin for now. This module aims to connect to Axon's websocket and allow for instantanous AI-based trading decisions.

# Axon | AI AutoTrader
##### Provided under MIT License by Axon Intellex.

> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

## Benefits
- A simple to use python wrapper for automatic trading based on Axon's websocket.
- Allows daily trades to happen on coinbase pro by leveraging coinbasepro-python.
- Enhance your trading decisions by leveraging Axon's reinforcement learning gathered from tons of features from the market.

## Under Development
- Integration to coinbasepro-python **Looking for assistance**
- real-time order book

## Background
- Axon is an artificially intelligent agent that trades bitcoin for now. This module aims to connect to Axon's websocket and allow for instantanous AI-based trading decisions. 
- Axon's decisions are based on daily candles, the most important decision is taken when a daily candle closes and a new daily candle opens. 
- Axon runs an analysis, (_which may take up to 5 mins_), that estimates what the next course of action is for the freshly created daily candle. 
- All timing is assumed to be in UTC. **important**

### Axon's 3 Decisions:
1. Long: Taking a long position or buying with an anticipation of a minimum_roi
2. Short: Taking a short position or shorting with an anticipation of a minimum_roi
3. STFO: Staying the Fuck out or not trading due to either a sideway movement or high volatility and randomness in the market.

While the newly created daily candle's decision is less likely to change, the conclusion of the day that follows fluctuates more often and is very much driven by how the current daily candle shall close. Axon's websocket API updates the client every 30 minutes about its daily trading decisions. 

### Script Under development
Currently the script requires python3 and websocket client. It should be enhanced to an AI agent class "Axon".

#### To run:
```python3 main.py```

*sample incomming message from Axon's websocket every 30 minutes on day 2021-09-26 00:00 UTC*

```
{
  "timestamp": 1632636034,
  "forecast": [{
      "period": "1D",
      "candle": "2021-09-26 00:00 UTC",
      "decision": "STFO",
      "confidence": 0.5625,
      "minimum_roi": 0,
      "info": "Axon is staying the FUCK OUT | Confidence: 56.72%"
    },
  {
      "period": "1D",
      "candle": "2021-09-27  00:00 UTC",
      "decision": "LONG",
      "confidence": 0.5625,
      "minimum_roi": 0.02,
      "info": "Axon is LONG | Confidence: 56.25%"
    }]
  }
```