<commit_before>//
//  MMTextParser+ExtData.h
//  ChatDemo-UI2.0
//
//  Created by <NAME> on 16/1/23.
//  Copyright © 2016 <NAME>. All rights reserved.
//

#import <Foundation/Foundation.h>

@class MMTextParser;

@interface MMTextParser (ExtData)

/**
 *  将textImageArray转换成extData
 *
 *  @param textImageArray MMEmoji和text的集合
 *
 *  @return 返回extData的二维数组 如 @[@[@"emojiCode", @1], @[@"text", @0]]
 */
+ (NSArray*)extDataWithTextImageArray:(NSArray*)textImageArray;

/**
 *  将单个emojiCode转换成extData
 *
 *  @param emojiCode 表情编码
 *
 *  @return 返回extData的二维数组 @[@[emojiCode, @"1"]];
 */
+ (NSArray*)extDataWithEmojiCode:(NSString*)emojiCode;

/**
 *   将单个extData转换成text
 *
 *  @param extData extData二维数组
 *
 *  @return mmtext<commit_msg>test 2<commit_after>//
//  MMTextParser+ExtData.h
//  ChatDemo-UI2.0
//
//  Created by <NAME> on 16/1/23.
//  Copyright © 2016 <NAME>. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BQMM.h"

@interface MMTextParser (ExtData)

/**
 *  将textImageArray转换成extData
 *
 *  @param textImageArray MMEmoji和text的集合
 *
 *  @return 返回extData的二维数组 如 @[@[@"emojiCode", @1], @[@"text", @0]]
 */
+ (NSArray*)extDataWithTextImageArray:(NSArray*)textImageArray;

/**
 *  将单个emojiCode转换成extData
 *
 *  @param emojiCode 表情编码
 *
 *  @return 返回extData的二维数组 @[@[emojiCode, @"1"]];
 */
+ (NSArray*)extDataWithEmojiCode:(NSString*)emojiCode;

/**
 *   将单个extData转换成text
 *
 *  @param extData extData二维数组
 *
 *  @return mmtext
{'fraction_non_alphanumeric': 0.171939477303989, 'fraction_numerical': 0.019944979367262722, 'mean_word_length': 4.0874125874125875, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5924614', 'n_tokens_mistral': 646, 'n_tokens_neox': 639, 'n_words': 98}