本文整理了Java中cc.mallet.types.Instance.getDataAlphabet()
方法的一些代码示例,展示了Instance.getDataAlphabet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.getDataAlphabet()
方法的具体详情如下:
包路径:cc.mallet.types.Instance
类名称:Instance
方法名:getDataAlphabet
暂无
代码示例来源:origin: com.github.steveash.mallet/mallet
public Alphabet getAlphabet () {
return getDataAlphabet();
}
代码示例来源:origin: cc.mallet/mallet
public Alphabet getAlphabet () {
return getDataAlphabet();
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public boolean alphabetsMatch (AlphabetCarrying object)
{
Alphabet[] oas = object.getAlphabets();
return oas.length == 2 && oas[0].equals(getDataAlphabet()) && oas[1].equals(getDataAlphabet());
}
代码示例来源:origin: cc.mallet/mallet
public boolean alphabetsMatch (AlphabetCarrying object)
{
Alphabet[] oas = object.getAlphabets();
return oas.length == 2 && oas[0].equals(getDataAlphabet()) && oas[1].equals(getDataAlphabet());
}
代码示例来源:origin: com.github.steveash.mallet/mallet
public boolean alphabetsMatch (AlphabetCarrying object)
{
Alphabet[] oas = object.getAlphabets();
return oas.length == 2 && oas[0].equals(getDataAlphabet()) && oas[1].equals(getDataAlphabet());
}
代码示例来源:origin: com.github.steveash.mallet/mallet
/** Return a tool for estimating topic distributions for new documents */
public TopicInferencer getInferencer() {
return new TopicInferencer(typeTopicCounts, tokensPerTopic,
data.get(0).instance.getDataAlphabet(),
alpha, beta, betaSum);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
/** Return a tool for estimating topic distributions for new documents */
public TopicInferencer getInferencer() {
return new TopicInferencer(typeTopicCounts, tokensPerTopic,
data.get(0).instance.getDataAlphabet(),
alpha, beta, betaSum);
}
代码示例来源:origin: cc.mallet/mallet
/** Return a tool for estimating topic distributions for new documents */
public TopicInferencer getInferencer() {
return new TopicInferencer(typeTopicCounts, tokensPerTopic,
data.get(0).instance.getDataAlphabet(),
alpha, beta, betaSum);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public Alphabet[] getAlphabets()
{
return new Alphabet[] {getDataAlphabet(), getTargetAlphabet()};
}
代码示例来源:origin: com.github.steveash.mallet/mallet
public Alphabet[] getAlphabets()
{
return new Alphabet[] {getDataAlphabet(), getTargetAlphabet()};
}
代码示例来源:origin: cc.mallet/mallet
public Alphabet[] getAlphabets()
{
return new Alphabet[] {getDataAlphabet(), getTargetAlphabet()};
}
代码示例来源:origin: cc.mallet/mallet
/** Replaces the <code>Instance</code> at position <code>index</code>
* with a new one. */
public void setInstance (int index, Instance instance)
{
assert (this.getDataAlphabet().equals(instance.getDataAlphabet()));
assert (this.getTargetAlphabet().equals(instance.getTargetAlphabet()));
this.set(index, instance);
}
代码示例来源:origin: com.github.steveash.mallet/mallet
/** Replaces the <code>Instance</code> at position <code>index</code>
* with a new one. */
public void setInstance (int index, Instance instance)
{
assert (this.getDataAlphabet().equals(instance.getDataAlphabet()));
assert (this.getTargetAlphabet().equals(instance.getTargetAlphabet()));
this.set(index, instance);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
/** Replaces the <code>Instance</code> at position <code>index</code>
* with a new one. */
public void setInstance (int index, Instance instance)
{
assert (this.getDataAlphabet().equals(instance.getDataAlphabet()));
assert (this.getTargetAlphabet().equals(instance.getTargetAlphabet()));
this.set(index, instance);
}
代码示例来源:origin: cc.mallet/mallet
/**
*
* @param i
* @param j
* @return A new {@link InstanceList} containing the two argument {@link Instance}s.
*/
public static InstanceList makeList (Instance i, Instance j) {
InstanceList list = new InstanceList(new Noop(i.getDataAlphabet(), i.getTargetAlphabet()));
list.add(i);
list.add(j);
return list;
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
/**
Iterates over {@link Segment}s for only one {@link Instance}.
*/
public SegmentIterator (Transducer model, Instance instance, Object[] segmentStartTags,
Object[] segmentContinueTags) {
InstanceList ilist = new InstanceList (new Noop (instance.getDataAlphabet(), instance.getTargetAlphabet()));
ilist.add (instance);
setSubIterator (model, ilist, segmentStartTags, segmentContinueTags);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
/**
*
* @param i
* @param j
* @return A new {@link InstanceList} containing the two argument {@link Instance}s.
*/
public static InstanceList makeList (Instance i, Instance j) {
InstanceList list = new InstanceList(new Noop(i.getDataAlphabet(), i.getTargetAlphabet()));
list.add(i);
list.add(j);
return list;
}
代码示例来源:origin: com.github.steveash.mallet/mallet
/**
*
* @param i
* @param j
* @return A new {@link InstanceList} containing the two argument {@link Instance}s.
*/
public static InstanceList makeList (Instance i, Instance j) {
InstanceList list = new InstanceList(new Noop(i.getDataAlphabet(), i.getTargetAlphabet()));
list.add(i);
list.add(j);
return list;
}
代码示例来源:origin: com.github.steveash.mallet/mallet
/**
Iterates over {@link Segment}s for only one {@link Instance}.
*/
public SegmentIterator (Transducer model, Instance instance, Object[] segmentStartTags,
Object[] segmentContinueTags) {
InstanceList ilist = new InstanceList (new Noop (instance.getDataAlphabet(), instance.getTargetAlphabet()));
ilist.add (instance);
setSubIterator (model, ilist, segmentStartTags, segmentContinueTags);
}
代码示例来源:origin: cc.mallet/mallet
/**
Iterates over {@link Segment}s for only one {@link Instance}.
*/
public SegmentIterator (Transducer model, Instance instance, Object[] segmentStartTags,
Object[] segmentContinueTags) {
InstanceList ilist = new InstanceList (new Noop (instance.getDataAlphabet(), instance.getTargetAlphabet()));
ilist.add (instance);
setSubIterator (model, ilist, segmentStartTags, segmentContinueTags);
}
内容来源于网络,如有侵权,请联系作者删除!