# cmd-fasttext4j **Repository Path**: quantumcs/cmd-fasttext4j ## Basic Information - **Project Name**: cmd-fasttext4j - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-06-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cmd-fasttext4j ### Description java版本的fasttext命令行工具. 1. 依赖[fasttext4j](https://github.com/quantumcs/fastText4j)。fasttext4j提供了Java版本的fasttext.并且支持使用少量内存即可实现大模型文件使用. 2. 支持将fasttext原生模型转换成mmap内存映射文件的模型 3. 支持fasttext mmap模型,原生模型文件的预测 主要供Java程序使用。 ### Software Architecture fasttext4j -> cmd-fasttext4j ### Usage ```shell usage: java -jar cmd-fasttext4j-1.0.jar -t -i -o -f,--text-file text file path -h,--help show this help message and exit program -i,--input input model path -m,--model-file text file path -o,--output output model path -t,--type convert-model, predict-prob, test, supervised ``` ##### 1. Predict ```shell java -jar cmd-fasttext4j-1.0.jar -t predict-prob -m seek_model_20181025 -f t ``` ##### 2. Convert-model 将原生模型文件转换成内存映射文件模型。供fasttext4j使用