/** * Returns the proofs * @return the proofs */ public ImmutableList<InstanceAndProof<I, P>> getProofs() { return new ImmutableListWrapper<>(proofs); }
/** * @return the posTaggedTokens */ public ImmutableListWrapper<PosTaggedToken> getPosTaggedTokens() { return new ImmutableListWrapper<PosTaggedToken>(posTaggedTokens); }
public ImmutableList<TreeHistoryComponent> getComponents() { return new ImmutableListWrapper<TreeHistoryComponent>(components); }
public static <E extends Comparable<E>> ImmutableList<E> createSortedImmutableList(Iterable<E> iterable) { List<E> list = new ArrayList<E>(); for (E e : iterable) { list.add(e); } Collections.sort(list); return new ImmutableListWrapper<E>(list); }
public ImmutableList<String> getLemmas() throws LemmatizerException { if (null==lemmas) throw new LemmatizerException("process() was not called."); return new ImmutableListWrapper<String>(lemmas); }
public ImmutableList<String> getQuotations() { if (this.quotations == null) { ArrayList<String> quotations_tmp = new ArrayList<String>(); for (Quotation jwktlQuotation : realEntry.getAssignedQuotations(senseNum)) quotations_tmp.add(jwktlQuotation.toString()); quotations = new ImmutableListWrapper<String>(quotations_tmp); } return quotations; }
public ImmutableList<Specification> getSpecifications() { ArrayList<Specification> list = new ArrayList<Specification>(components.size()); for (TreeHistoryComponent component : components) { list.add(component.getSpecification()); } return new ImmutableListWrapper<Specification>(list); }
public ImmutableList<String> getQuotations() { if (this.quotations == null) { ArrayList<String> tmpQuotations = new ArrayList<String>(); for (Quotation jwktlQuotation : realEntry.getAllQuotations()) tmpQuotations.add(jwktlQuotation.toString()); quotations = new ImmutableListWrapper<String>(tmpQuotations); } return quotations; }
public ImmutableList<Map<Integer, Double>> getFeaturesVectors() { if (activeTypes == null || !activeTypes.containsKey(TreeHistoryComponentType.FEATURE_VECTOR) || false == activeTypes.get(TreeHistoryComponentType.FEATURE_VECTOR)) { return new ImmutableListWrapper<Map<Integer, Double>>(emptyListFeatureVectors); } else { ArrayList<Map<Integer, Double>> list = new ArrayList<Map<Integer, Double>>(components.size()); for (TreeHistoryComponent component : components) { list.add(component.getFeatureVector()); } return new ImmutableListWrapper<Map<Integer, Double>>(list); } }
public ImmutableList<String> getCategories() { return new ImmutableListWrapper<String>(this.realEntry.getCategories()); }
public ImmutableList<String> getExamples() { if (this.examples == null) { ArrayList<String> tmpExamples = new ArrayList<String>(); for (WikiString wikiString : realEntry.getAssignedExamples(senseNum)) tmpExamples.add(wikiString.getTextIncludingWikiMarkup()); examples = new ImmutableListWrapper<String>(tmpExamples); } return examples; }
public ImmutableList<String> getExamples() { if (this.examples == null) { ArrayList<String> tmpExamples = new ArrayList<String>(); for (WikiString wikiString : realEntry.getAllExamples()) tmpExamples.add(wikiString.getTextIncludingWikiMarkup()); examples = new ImmutableListWrapper<String>(tmpExamples); } return examples; }
public void process() throws LemmatizerException { String pos = null; if (partOfSpeech != null) { pos = partOfSpeech.toString(); } ArrayList<String> tmpLemmas = GenerateLemmaFromWord.get(word, pos, command); lemmas = new ImmutableListWrapper<String>(tmpLemmas); }
@Override public ImmutableList<String> getLemmas() throws LemmatizerException { if (APOSTROPHE.equals(lastInputWord)) { return new ImmutableListWrapper<String>(new SingleItemList<String>(lastInputWord)); } else { return realLemmatizer.getLemmas(); } }
public ImmutableList<String> getRelatedWords(WiktionaryRelation relation) throws JwktlException { return new ImmutableListWrapper<String>( JwktlUtils.cleanRelatedWords( JwktlUtils.wktRelationToJwktlRelaton(relation) != null ? realEntry.getAllRelatedWords(JwktlUtils.wktRelationToJwktlRelaton(relation)) : new Vector<String>())); }
ImmutableList<String> lemmas = new ImmutableListWrapper<String>(reallist); tInfo.setLemmas(lemmas);
public static <I, S extends AbstractNode<I,S>> ChainOfRulesWithConfidenceAndDescription<I,S> fromChainOfLexicalRules(ChainOfLexicalRules chain, RuleWithConfidenceAndDescription<I, S> rule) { ArrayList<ConfidenceChainItem> list = new ArrayList<ConfidenceChainItem>(chain.getChain().size()); for (LexicalRuleWithName lexicalRule : chain.getChain()) { list.add(new ConfidenceChainItem(lexicalRule.getRuleBaseName(), lexicalRule.getRule().getConfidence())); } return new ChainOfRulesWithConfidenceAndDescription<I, S>( rule.getRule(), rule.getConfidence(), rule.getDescription()+": "+createDescription(chain), new ImmutableListWrapper<ConfidenceChainItem>(list)); }
firstIterationsImList = new ImmutableListWrapper<SingleOperationItem>(firstIterationsList); otherIterationsImList = new ImmutableListWrapper<SingleOperationItem>(otherIterationsList);
@Override public Map<Integer, Double> updateFeatureVector( Map<Integer, Double> originalFeatureVector, FeatureUpdate featureUpdate, TreeAndParentMap<ExtendedInfo, ExtendedNode> textTree, TreeAndParentMap<ExtendedInfo, ExtendedNode> hypothesisTree, GenerationOperation<ExtendedInfo, ExtendedNode> operation, RuleSubstituteNodeSpecification<ChainOfLexicalRules> specification) throws TeEngineMlException { List<ConfidenceChainItem> chain = new ArrayList<ConfidenceChainItem>(specification.getRule().getChain().size()); for (LexicalRuleWithName lexicalRule : specification.getRule().getChain()) { chain.add( new ConfidenceChainItem(lexicalRule.getRuleBaseName(),lexicalRule.getRule().getConfidence())); } return featureUpdate.forChainOfRules(originalFeatureVector, new ImmutableListWrapper<ConfidenceChainItem>(chain)); }
verbsList.addAll(verbs); Nominalization nominalization = new Nominalization(noun, new ImmutableListWrapper<String>(verbsList), itsOwnRole, new ImmutableMapWrapper<NomlexArgument, ArgumentType>(mapArgumentToType)); if (null==nominalization.getNominal()) throw new NomlexException("BUG"); if (internalNomlexMap.containsKey(nominalization.getNominal()))