当前位置:网站首页>在unity中使用jieba分词的方法
在unity中使用jieba分词的方法
2022-07-01 02:21:00 【kiss_the_rain86】
step1 在VS中安装nuget包

搜jieba,安装
安装完毕后在unity项目的根目录中找到安装好的包:
你的项目名/Packages/jieba.NET
点进去,点击lib,找到适用你unity中.net版本的dll,复制进unity项目的assets/Plugins文件夹中(没有的话新建一个)
如果出现报错,说你还有package没有装,同样的方法先搜nuget,然后复制dll到plugins。
step2 指明jieba的config文件夹
jieba包中的Resources文件夹里就是相关的设置文件。建议将其放在unity项目的某个地方,然后直接在代码中指明路径,比如我放在Assets/Scripts/TellStory/Voice/jiebaConfig文件夹下面,那么在用jieba之前就写下面这一行:
JiebaNet.Segmenter.ConfigManager.ConfigFileBaseDir = Application.dataPath + @“/Scripts/TellStory/Voice/jiebaConfig”;
step3 用起来
怎么用直接看官方说明:
https://github.com/anderscui/jieba.NET
边栏推荐
- I want to know how to open a stock account? Is it safe to open an account online?
- Some uses of Halcon array
- Objects and object variables
- Focusing on green and low carbon, data center cooling has entered a new era of "intelligent cooling"
- Batch import of Excel data in applet
- SWT / anr problem - binder stuck
- What are the preferential activities for stock account opening? In addition, is it safe to open a mobile account?
- MySQL insert \ pre update + judgment condition
- 手机edge浏览器无法打开三方应用
- 零基础自学SQL课程 | 窗口函数
猜你喜欢
随机推荐
修复表中的名字(首字符大写,其他小写)
Pytorch —— 基础指北_贰 高中生都能看懂的[反向传播和梯度下降]
SWT/ANR问题--Binder Stuck
Fix names in the table (first character uppercase, other lowercase)
map数组函数
我想知道股票开户怎么开户?究竟网上开户是否安全么?
删除重复的电子邮箱
MySQL insert \ pre update + judgment condition
5款主流智能音箱入门款测评:苹果小米华为天猫小度,谁的表现更胜一筹?
There is no future to be expected. It is just the last fantasy of a migrant worker before he dies
Leetcode 面试题 17.10. 主要元素
Short message sending solution in medical his industry
Small program cloud development -- wechat official account article collection
[graduation season · advanced technology Er] - summary from graduation to work
Pytorch —— 基礎指北_貳 高中生都能看懂的[反向傳播和梯度下降]
nacos配置中心使用教程
LabVIEW计算相机图像传感器分辨率以及镜头焦距
My PMP learning test experience
Laravel event & Monitoring
int和位数组互转






