Searched defs:ts (Results 1 - 10 of 10) sorted by relevance

/lucene-3.6.0/solr/contrib/uima/src/test/org/apache/solr/uima/ts/
H A DEntityAnnotation.java4 package org.apache.solr.uima.ts;
69 jcasType.jcas.throwFeatMissing("name", "org.apache.solr.uima.ts.EntityAnnotation");
76 jcasType.jcas.throwFeatMissing("name", "org.apache.solr.uima.ts.EntityAnnotation");
87 jcasType.jcas.throwFeatMissing("entity", "org.apache.solr.uima.ts.EntityAnnotation");
94 jcasType.jcas.throwFeatMissing("entity", "org.apache.solr.uima.ts.EntityAnnotation");
H A DSentimentAnnotation.java4 package org.apache.solr.uima.ts;
69 jcasType.jcas.throwFeatMissing("mood", "org.apache.solr.uima.ts.SentimentAnnotation");
76 jcasType.jcas.throwFeatMissing("mood", "org.apache.solr.uima.ts.SentimentAnnotation");
H A DSentimentAnnotation_Type.java3 package org.apache.solr.uima.ts;
42 public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.solr.uima.ts.SentimentAnnotation");
51 jcas.throwFeatMissing("mood", "org.apache.solr.uima.ts.SentimentAnnotation");
57 jcas.throwFeatMissing("mood", "org.apache.solr.uima.ts.SentimentAnnotation");
H A DEntityAnnotation_Type.java3 package org.apache.solr.uima.ts;
42 public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.solr.uima.ts.EntityAnnotation");
51 jcas.throwFeatMissing("name", "org.apache.solr.uima.ts.EntityAnnotation");
57 jcas.throwFeatMissing("name", "org.apache.solr.uima.ts.EntityAnnotation");
69 jcas.throwFeatMissing("entity", "org.apache.solr.uima.ts.EntityAnnotation");
75 jcas.throwFeatMissing("entity", "org.apache.solr.uima.ts.EntityAnnotation");
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/
H A DTrieTokenizerFactory.java59 protected final NumericTokenStream ts; field in class:TrieTokenizer
68 public TrieTokenizer(Reader input, TrieTypes type, int precisionStep, NumericTokenStream ts) { argument
70 super(ts, input);
73 this.ts = ts;
94 ts.setIntValue(Integer.parseInt(v));
97 ts.setFloatValue(Float.parseFloat(v));
100 ts.setLongValue(Long.parseLong(v));
103 ts.setDoubleValue(Double.parseDouble(v));
106 ts
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/analysis/
H A DTestAnalyzers.java80 void verifyPayload(TokenStream ts) throws IOException { argument
81 PayloadAttribute payloadAtt = ts.getAttribute(PayloadAttribute.class);
83 boolean hasNext = ts.incrementToken();
94 TokenStream ts;
95 ts = new WhitespaceTokenizer(TEST_VERSION_CURRENT, new StringReader(s));
96 ts = new PayloadSetter(ts);
97 verifyPayload(ts);
99 ts = new WhitespaceTokenizer(TEST_VERSION_CURRENT, new StringReader(s));
100 ts
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/
H A DTestAnalyzers.java80 void verifyPayload(TokenStream ts) throws IOException { argument
81 PayloadAttribute payloadAtt = ts.getAttribute(PayloadAttribute.class);
83 boolean hasNext = ts.incrementToken();
94 TokenStream ts;
95 ts = new WhitespaceTokenizer(TEST_VERSION_CURRENT, new StringReader(s));
96 ts = new PayloadSetter(ts);
97 verifyPayload(ts);
99 ts = new WhitespaceTokenizer(TEST_VERSION_CURRENT, new StringReader(s));
100 ts
[all...]
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/analysis/
H A DBaseTokenStreamTestCase.java85 public static void assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], String types[], int posIncrements[], Integer finalOffset) throws IOException { argument
87 CheckClearAttributesAttribute checkClearAtt = ts.addAttribute(CheckClearAttributesAttribute.class);
89 assertTrue("has no CharTermAttribute", ts.hasAttribute(CharTermAttribute.class));
90 CharTermAttribute termAtt = ts.getAttribute(CharTermAttribute.class);
94 assertTrue("has no OffsetAttribute", ts.hasAttribute(OffsetAttribute.class));
95 offsetAtt = ts.getAttribute(OffsetAttribute.class);
100 assertTrue("has no TypeAttribute", ts.hasAttribute(TypeAttribute.class));
101 typeAtt = ts.getAttribute(TypeAttribute.class);
106 assertTrue("has no PositionIncrementAttribute", ts.hasAttribute(PositionIncrementAttribute.class));
107 posIncrAtt = ts
153 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], String types[], int posIncrements[]) argument
157 assertTokenStreamContents(TokenStream ts, String[] output) argument
161 assertTokenStreamContents(TokenStream ts, String[] output, String[] types) argument
165 assertTokenStreamContents(TokenStream ts, String[] output, int[] posIncrements) argument
169 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[]) argument
173 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], Integer finalOffset) argument
177 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], int[] posIncrements) argument
181 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], int[] posIncrements, Integer finalOffset) argument
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/
H A DTestShingleMatrixFilter.java63 TokenStream ts;
65 ts = new ShingleMatrixFilter(new EmptyTokenStream(), 1, 2, new Character(' '), false, new ShingleMatrixFilter.OneDimensionalNonWeightedTokenSettingsCodec());
66 assertFalse(ts.incrementToken());
85 ts = new ShingleMatrixFilter(tls, 1, 2, new Character(' '), false, new ShingleMatrixFilter.OneDimensionalNonWeightedTokenSettingsCodec());
87 assertTokenStreamContents(ts,
103 TokenStream ts;
120 ts = new ShingleMatrixFilter(tls, 2, 2, new Character('_'), false, new ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodec());
122 assertNext(ts, "hello_world");
123 assertNext(ts, "greetings_world");
124 assertNext(ts, "hello_eart
448 assertNext(TokenStream ts, String text) argument
455 assertNext(TokenStream ts, String text, int positionIncrement, float boost, int startOffset, int endOffset) argument
469 assertNext(TokenStream ts, String text, int startOffset, int endOffset) argument
[all...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/
H A DBaseTokenStreamTestCase.java101 public static void assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], String types[], int posIncrements[], int posLengths[], Integer finalOffset) throws IOException { argument
103 CheckClearAttributesAttribute checkClearAtt = ts.addAttribute(CheckClearAttributesAttribute.class);
105 assertTrue("has no CharTermAttribute", ts.hasAttribute(CharTermAttribute.class));
106 CharTermAttribute termAtt = ts.getAttribute(CharTermAttribute.class);
110 assertTrue("has no OffsetAttribute", ts.hasAttribute(OffsetAttribute.class));
111 offsetAtt = ts.getAttribute(OffsetAttribute.class);
116 assertTrue("has no TypeAttribute", ts.hasAttribute(TypeAttribute.class));
117 typeAtt = ts.getAttribute(TypeAttribute.class);
122 assertTrue("has no PositionIncrementAttribute", ts.hasAttribute(PositionIncrementAttribute.class));
123 posIncrAtt = ts
192 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], String types[], int posIncrements[], Integer finalOffset) argument
196 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], String types[], int posIncrements[]) argument
200 assertTokenStreamContents(TokenStream ts, String[] output) argument
204 assertTokenStreamContents(TokenStream ts, String[] output, String[] types) argument
208 assertTokenStreamContents(TokenStream ts, String[] output, int[] posIncrements) argument
212 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[]) argument
216 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], Integer finalOffset) argument
220 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], int[] posIncrements) argument
224 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], int[] posIncrements, Integer finalOffset) argument
228 assertTokenStreamContents(TokenStream ts, String[] output, int startOffsets[], int endOffsets[], int[] posIncrements, int[] posLengths, Integer finalOffset) argument
[all...]

Completed in 30 milliseconds