Is the function "preprocessText" from the Text Analytics Toolbox tutorials a built-in MATLAB function?

The function "preprocessText" is mentioned in two examples in the Text Analytics Toolbox:
  1. To view the example on creating a simple text model for classification, run the following command in the MATLAB R2020a command window to access the release-specific documentation:
    >> web(fullfile(docroot, 'textanalytics/ug/create-simple-text-model-for-classification.html'))
  2. For the example on preparing text data for analysis, execute the following command to open the relevant documentation:
    >> web(fullfile(docroot, 'textanalytics/ug/prepare-text-data-for-analysis.html'))
The examples mention: "Create a function which tokenizes and preprocesses the text data so it can be used for analysis. The function preprocessText performs the following steps..."
Is "preprocessText" an internal MATLAB function or does it have to be implemented by the user?

 採用された回答

MathWorks Support Team
MathWorks Support Team 2025 年 2 月 14 日
編集済み: MathWorks Support Team 2025 年 2 月 14 日
The function "preprocessText" is a supporting function implemented towards the end of the page in the two examples. For more information on the structure of this function, you can access the documentation by running the following commands in the MATLAB R2020a command window:
  1. To view the example on creating a simple text model for classification, use:
    >> web(fullfile(docroot, 'textanalytics/ug/create-simple-text-model-for-classification.html#CreateSimpleTextModelForClassificationExample-6'))
  2. To access the example on preparing text data for analysis, execute:
    >> web(fullfile(docroot, 'textanalytics/ug/prepare-text-data-for-analysis.html#PrepareTextDataForAnalysisExample-6'))
Please note that supporting functions are not built-in MATLAB functions; they are specifically implemented inside the examples that utilize them.
Please follow the below link to search for the required information regarding the current release:

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeText Analytics Toolbox についてさらに検索

製品

リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by