Skip to content

Commit

Permalink
📝 Writing docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrikerMan committed Jul 12, 2019
1 parent 131b1d4 commit 1492ebd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/md/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ pip install tensorflow
pip install tensorflow-gpu
```

**You could work with tensorflow==1.13.0 for embedding and labeling tasks, but some customized classification models might crash**

### Example Usage

lets run a NER labeling model with BLSTM Model.
Expand Down
6 changes: 6 additions & 0 deletions docs/md/text_classification_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ Then train our first model. All models provided some APIs, so you could use any
import kashgari
from kashgari.tasks.classification import BiLSTM_Model

import logging
logging.basicConfig(level='DEBUG')

model = BiLSTM_Model()
model.fit(train_x, train_y, valid_x, valid_y)

Expand Down Expand Up @@ -134,6 +137,9 @@ from tensorflow import keras
from kashgari.tasks.classification.base_model import BaseClassificationModel
from kashgari.layers import L

import logging
logging.basicConfig(level='DEBUG')


class DoubleBLSTMModel(BaseClassificationModel):
"""Bidirectional LSTM Sequence Labeling Model"""
Expand Down
2 changes: 2 additions & 0 deletions docs/md/text_labeling_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ from tensorflow import keras
from kashgari.tasks.labeling.base_model import BaseLabelingModel
from kashgari.layers import L

import logging
logging.basicConfig(level='DEBUG')

class DoubleBLSTMModel(BaseLabelingModel):
"""Bidirectional LSTM Sequence Labeling Model"""
Expand Down

0 comments on commit 1492ebd

Please sign in to comment.