Text Processing Widget

Time:2019-8-13

Program name
Text Processing Widget


Procedural Guidelines

This program has two main functions: text segmentation and text classification.

Text segmentation

functionCut sentences into words to count word frequency
Use steps:

  1. File Input Path: Files that store sentences to be participled must be in. xlsx format. Currently, Chinese Path is supported.
    Text Processing Widget

  2. Table Name: The sheet name in the. xlsx file, which defaults to Sheet1, can be modified. At present, Chinese table name is supported.
    Text Processing Widget

  3. Analytical column: the column in which the sentence to be participled is located
    Text Processing Widget

  4. File Output Path: The location where the processed files are placed
    Text Processing Widget

  5. Number of processed rows: Number of rows that have been read by the program.
    Text Processing Widget

  6. Click to run

  7. Exit, interrupt the program (this part is not yet complete, it can only be done by closing the entire tool at present)
    Result:

When the program is completed, the corresponding files will be generated in the path you choose.

Text classification

functionClassifier is used to analyze the categories of sentences
Use steps:

  1. File Input Path: Files that store sentences to be partitioned must be in. xlsx format
    Text Processing Widget

  2. Table Name: The sheet name in the. xlsx file, which defaults to Sheet1, can be modified
    Text Processing Widget

  3. Analytical column: the column in which the sentence to be participled is located
    Text Processing Widget

  4. Category Items: Choose Different Classifiers
    Text Processing Widget

  5. Server selection: Different classifiers are deployed on different servers and need to be distinguished
    Text Processing WidgetText Processing Widget

  6. File Output Path: The location where the processed files are placed
    Text Processing Widget

  7. By default, data that fails to be labeled is discarded. Here you can choose to retain the full data and data that is not labeled.
    Text Processing Widget

  8. Number of processed rows: Number of rows that have been read by the program.
    Text Processing Widget

  9. Click to run

  10. Exit, interrupt the program (this part is not yet complete, it can only be done by closing the entire tool at present)
    Result:

When the program is completed, the corresponding files will be generated in the path you choose.

Recommended Today

The method of obtaining the resolution of display by pyqt5

The code is as follows import sys from PyQt5.QtWidgets import QApplication, QWidget class Example(QWidget): def __init__(self): super().__init__() self.initUI() #Interface drawing to initui method def initUI(self): self.desktop = QApplication.desktop() #Get display resolution size self.screenRect = self.desktop.screenGeometry() self.height = self.screenRect.height() self.width = self.screenRect.width() print(self.height) print(self.width) #Show window self.show() if __name__ == ‘__main__’: #Create applications and objects app […]