Skip to content
#

document-classification

Here are 93 public repositories matching this topic...

MingleiLI
MingleiLI commented Oct 24, 2018

In the file data_util.py, the code is as follows:
`def batch(inputs):
batch_size = len(inputs)

document_sizes = np.array([len(doc) for doc in inputs], dtype=np.int32) # Different batch will
# have different document_sizes.
document_size = document_sizes.max() # Document with maximum sentence number.

sentenc

pyss3

TextClf :基于Pytorch/Sklearn的文本分类框架,包括逻辑回归、SVM、TextCNN、TextRNN、TextRCNN、DRNN、DPCNN、Bert等多种模型,通过简单配置即可完成数据处理、模型训练、测试等过程。

  • Updated Mar 8, 2020
  • Python

Improve this page

Add a description, image, and links to the document-classification topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the document-classification topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.