예제 #1
0
 public MyTokenStream(TestTermVectorsReader enclosingInstance)
 {
     InitBlock(enclosingInstance);
     termAtt    = AddAttribute <ITermAttribute>();
     posIncrAtt = AddAttribute <IPositionIncrementAttribute>();
     offsetAtt  = AddAttribute <IOffsetAttribute>();
 }
 public MyTokenStream(TestTermVectorsReader enclosingInstance)
 {
     InitBlock(enclosingInstance);
     termAtt    = (TermAttribute)AddAttribute(typeof(TermAttribute));
     posIncrAtt = (PositionIncrementAttribute)AddAttribute(typeof(PositionIncrementAttribute));
     offsetAtt  = (OffsetAttribute)AddAttribute(typeof(OffsetAttribute));
 }
예제 #3
0
 public MyTokenizer(TestTermVectorsReader outerInstance, TextReader reader)
     : base(reader)
 {
     this.OuterInstance = outerInstance;
     TermAtt            = AddAttribute <ICharTermAttribute>();
     PosIncrAtt         = AddAttribute <IPositionIncrementAttribute>();
     OffsetAtt          = AddAttribute <IOffsetAttribute>();
 }
			private void  InitBlock(TestTermVectorsReader enclosingInstance)
			{
				this.enclosingInstance = enclosingInstance;
			}
			public TestToken(TestTermVectorsReader enclosingInstance)
			{
				InitBlock(enclosingInstance);
			}
			public MyAnalyzer(TestTermVectorsReader enclosingInstance)
			{
				InitBlock(enclosingInstance);
			}
			public MyTokenStream(TestTermVectorsReader enclosingInstance)
			{
				InitBlock(enclosingInstance);
				termAtt = (TermAttribute) AddAttribute(typeof(TermAttribute));
				posIncrAtt = (PositionIncrementAttribute) AddAttribute(typeof(PositionIncrementAttribute));
				offsetAtt = (OffsetAttribute) AddAttribute(typeof(OffsetAttribute));
			}
예제 #8
0
 public TestToken(TestTermVectorsReader outerInstance)
 {
     this.OuterInstance = outerInstance;
 }
예제 #9
0
 public MyAnalyzer(TestTermVectorsReader outerInstance)
 {
     this.OuterInstance = outerInstance;
 }
예제 #10
0
 private void  InitBlock(TestTermVectorsReader enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
예제 #11
0
 public TestToken(TestTermVectorsReader enclosingInstance)
 {
     InitBlock(enclosingInstance);
 }
예제 #12
0
 public MyAnalyzer(TestTermVectorsReader enclosingInstance)
 {
     InitBlock(enclosingInstance);
 }
			public MyTokenStream(TestTermVectorsReader enclosingInstance)
			{
				InitBlock(enclosingInstance);
			}