Skip to content

Commit 8b6d082

Browse files
authoredOct 1, 2018
Merge pull request #91 from FengZiYjun/master
Merge Preprocessor into DataSet.
2 parents 281b567 + 81790d7 commit 8b6d082

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2249
-67893
lines changed
 

‎.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ python:
55
install:
66
- pip install --quiet -r requirements.txt
77
- pip install pytest pytest-cov
8-
- pip install -U scikit-learn
98
# command to run tests
109
script:
1110
- pytest --cov=./

‎README.md

+30-71
Original file line numberDiff line numberDiff line change
@@ -30,77 +30,36 @@ Run the following commands to install fastNLP package.
3030
pip install fastNLP
3131
```
3232

33-
### Cloning From GitHub
34-
35-
If you just want to use fastNLP, use:
36-
```shell
37-
git clone https://github.com/fastnlp/fastNLP
38-
cd fastNLP
39-
```
40-
41-
### PyTorch Installation
42-
43-
Visit the [PyTorch official website] for installation instructions based on your system. In general, you could use:
44-
```shell
45-
# using conda
46-
conda install pytorch torchvision -c pytorch
47-
# or using pip
48-
pip3 install torch torchvision
49-
```
50-
51-
### TensorboardX Installation
52-
53-
```shell
54-
pip3 install tensorboardX
55-
```
5633

5734
## Project Structure
5835

59-
```
60-
FastNLP
61-
├── docs
62-
├── fastNLP
63-
│   ├── core
64-
│   │   ├── action.py
65-
│   │   ├── __init__.py
66-
│   │   ├── loss.py
67-
│   │   ├── metrics.py
68-
│   │   ├── optimizer.py
69-
│   │   ├── predictor.py
70-
│   │   ├── preprocess.py
71-
│   │   ├── README.md
72-
│   │   ├── tester.py
73-
│   │   └── trainer.py
74-
│   ├── fastnlp.py
75-
│   ├── __init__.py
76-
│   ├── loader
77-
│   │   ├── base_loader.py
78-
│   │   ├── config_loader.py
79-
│   │   ├── dataset_loader.py
80-
│   │   ├── embed_loader.py
81-
│   │   ├── __init__.py
82-
│   │   └── model_loader.py
83-
│   ├── models
84-
│   ├── modules
85-
│   │   ├── aggregation
86-
│   │   ├── decoder
87-
│   │   ├── encoder
88-
│   │   ├── __init__.py
89-
│   │   ├── interaction
90-
│   │   ├── other_modules.py
91-
│   │   └── utils.py
92-
│   └── saver
93-
├── LICENSE
94-
├── README.md
95-
├── reproduction
96-
├── requirements.txt
97-
├── setup.py
98-
└── test
99-
├── core
100-
├── data_for_tests
101-
├── __init__.py
102-
├── loader
103-
├── modules
104-
└── readme_example.py
105-
106-
```
36+
<table>
37+
<tr>
38+
<td><b> fastNLP </b></td>
39+
<td> an open-source NLP library </td>
40+
</tr>
41+
<tr>
42+
<td><b> fastNLP.core </b></td>
43+
<td> trainer, tester, predictor </td>
44+
</tr>
45+
<tr>
46+
<td><b> fastNLP.loader </b></td>
47+
<td> all kinds of loaders/readers </td>
48+
</tr>
49+
<tr>
50+
<td><b> fastNLP.models </b></td>
51+
<td> a collection of NLP models </td>
52+
</tr>
53+
<tr>
54+
<td><b> fastNLP.modules </b></td>
55+
<td> a collection of PyTorch sub-models/components/wheels </td>
56+
</tr>
57+
<tr>
58+
<td><b> fastNLP.saver </b></td>
59+
<td> all kinds of savers/writers </td>
60+
</tr>
61+
<tr>
62+
<td><b> fastNLP.fastnlp </b></td>
63+
<td> a high-level interface for prediction </td>
64+
</tr>
65+
</table>

0 commit comments

Comments
 (0)
Please sign in to comment.