Comments (1)
Thanks for your attention. You can use the word2vec or glove algorithm (their original version are based on English, therefore, these codes usually take space as the separator, you might need to add space between Chinese characters or bigrams ) to train your own word vectors, and you can use the wiki corpus to train your word vector models. For a sentence like "复旦大学" , the unigram sequence is [“复”, “旦”,“大”,“学”],the bigram sequence is ["复旦", "旦大",“大学”,“学<EOS>”]. Based on my experience, the larger word vector dimension, the better performance (300d>100d>50d). Since the Chinese corpus are not large, usually you only need less than 1 hour to train 5 epochs to get the vectors.
from tener.
Related Issues (20)
- Testing and predicting with TENER HOT 1
- 关于PE向量的问题,为什么要shift?以及为什么要transpose_shift?是为了计算R中的t-j吗 HOT 2
- RelativeMultiHeadAttn
- 一个关于weibo数据集的问题 HOT 2
- Can this be used on non CONLL-2003 data format? HOT 1
- 调取batch模块读取数据时出现的无限递归问题 HOT 1
- attention score计算的疑问 HOT 2
- 如何将中文数据集转为
- Significance of using 'num_embeddings' and 'origin_shift' HOT 1
- how to (1) Prepare the English dataset.? HOT 1
- How to split the msra dataset? HOT 1
- reproducing the results on the paper HOT 1
- 请问测试的代码没有吗 HOT 2
- 请教如何理解函数_transpose_shift HOT 1
- -
- 测试结果 HOT 1
- 训练结果问题 HOT 4
- 论文中取哪一个结果,评价指标问题
- 请问一下用训练好的模型做测试?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tener.