当前位置:网站首页>在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
边栏推荐
- 十大券商有哪些?另外想问,现在在线开户安全么?
- What are the top ten securities companies? In addition, is it safe to open an account online now?
- 我的PMP学习考试心得
- 修复表中的名字(首字符大写,其他小写)
- The latest wechat iPad protocol code obtains official account authorization, etc
- What is the difference between port number and process number?
- (translation) use eyebrow shaped text to improve Title click through rate
- Objects and object variables
- 先写API文档还是先写代码?
- 手机edge浏览器无法打开三方应用
猜你喜欢

My PMP learning test experience

In the fourth week of June, the list - flying melon data up main growth ranking list (BiliBili platform) was released!

The latest wechat iPad protocol code obtains official account authorization, etc

视觉特效,图片转成漫画功能

LabVIEW计算相机图像传感器分辨率以及镜头焦距

7-2 punch in reward DP for puzzle a

PMP是什麼?

VirtualBox 安装增强功能

Calculate special bonus

How does ZABBIX configure alarm SMS? (alert SMS notification setting process)
随机推荐
VirtualBox installation enhancements
(翻译)使用眉状文本提高标题点击率
(translation) use eyebrow shaped text to improve Title click through rate
SWT/ANR问题--Native方法执行时间过长导致SWT
[proteus simulation] Arduino UNO +74c922 keyboard decoding drive 4x4 matrix keyboard
halcon数组的一些使用
P6773 [noi2020] destiny (DP, segment tree merging)
522. Longest special sequence II
My PMP learning test experience
(translation) reasons why real-time inline verification is easier for users to make mistakes
Alphabet-Rearrange-Inator 3000(字典树自定义排序)
P6773 [NOI2020] 命运(dp、线段树合并)
AS400 entretien d'usine
Pycharm 打开远程目录 Remote Host
Template: globally balanced binary tree
SWT / anr problem - SWT caused by long execution time of native method
Qu'est - ce que le PMP?
SWT / anr problem - SWT caused by too long dump time
FL Studio20.9水果软件高级中文版电音编曲
手机edge浏览器无法打开三方应用