MALLET中的数据表示

 1。An instance contains four generic fields of predefined name: "data", "target", "name", and "source". "Data" holds the data represented `by the instance,"target" is often a label associated with the instance, "name" is a short identifying name for the instance (such as a filename), and "source" is human-readable source information, (such as the original text).

2。How to create an Instance?Two ways:(1)Instance  constructor  method,比如:new Instance(data, target, name, source) (2) Itarator:比如Iterator<Instance> FileIterator(File[], ...) CsvIterator(FileReader, Pattern...) ArrayIterator(Object[])

3。How do we modify the value of Instance fields?through setter?

4.Name some classes that appear in the “data” field.String,TokenSequence(ArrayList<Token>),FeatureSequence(int[]),FeatureVector(int -> double map).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值