# FiNAl **Repository Path**: WDDcat/final ## Basic Information - **Project Name**: FiNAl - **Description**: Mobile For Development (M4D) - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-27 - **Last Updated**: 2023-02-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 预处理 `samples/ProProcess.py` 先使用Vocab类(`utils.Vocabulary`)统计外部函数 ```python class Vocab: def __init__( self, freq_files: str, # 需要统计的文件列表 max_vocab_size: int, # 外部函数数量最大值 min_freq: int = 1, # 最小出现频率 unk_token: str = '', # 低频词或未在词表中的词 pad_token: str = '', # 补全字符 special_tokens: list = None): load_freq_counter_from_file(freq_files, min_freq) @staticmethod def load_freq_counter_from_file(file_path: str, min_freq: int): with open(file_path, 'r') as f: for line in f: ``` --branch MalGraph [GitHub - ryderling/MalGraph: Code for "MalGraph: Hierarchical Graph Neural Networks for Robust Windows Malware Detection"](https://github.com/ryderling/MalGraph)