Hi,
Yes, the newer Iterator/ListIterator stuff will allow some nice improvements in ruta, I think :-) The first class that implemented FSIteratorImplBase is org.apache.uima.ruta.RutaStream. There is actually no reason now why it has to implement it, and I also removed it in ruta-v3. The class is on top of my todo list and will be reimplemented when I find the time. It implemented the iterator for legacy/historical reasons. The version of textmarker (ruta) before it was adapted to UIMA used this class as some sort of filtered iterator on annotations. Therefore I chose to implement the UIMA iterator when I migrated it to UIMA. (My UIMA knowledge was quite limited in 2007) The second class is org.apache.uima.ruta.rule.AnnotationListFSIterator. This class is a mock of an iterator based on a simple list of annotations. The wildcard rule element operates on an FSIterator in order to identify the match of the next rule element in order to determine its own match range. If the next rule element macthes on an a FSArray feature of an annotation, I need some wrapper class fulfilling the FSIterator interface based on a list (FSArray). I think I will refactor the code using the ListIterator interface in future. Right now, AnnotationListFSIterator implements the remaining methods with a NotImplementedException. So, its all fine from the ruta side. Best, Peter Am 08.09.2017 um 22:18 schrieb Marshall Schor: > I'm curious whether the newer iterator things in v3 address the use case you > extended FSIteratorImplBase for. Can you point to some code that is doing > this > extension or some other info about it? > > Thanks. -Marshall > > > On 9/8/2017 3:02 AM, Peter Klügl wrote: >> I think the problem was caused by a bug in the old beta rc and the jar >> was not replaced by the staged artifact. >> >> >> Now, I face compile errors because I have two classes that extend the >> old FSIteratorImplBase but do not implement the getter on the comparator >> yet. Should we take care of some sort of backward-compatability on >> compile level here? (I don't know) >> >> >> I must admit that I lost the overview of all the changes in v3. A lot to >> catch up on... >> >> >> Best, >> >> Peter >> >> Am 07.09.2017 um 21:06 schrieb Marshall Schor: >>> ok, let me know if I can help... -Marshall >>> >>> >>> On 9/7/2017 11:29 AM, Peter Klügl wrote: >>>> Ah wait, I still have some version problems. The staged-release build >>>> did not work as expected. >>>> >>>> >>>> Am 07.09.2017 um 17:19 schrieb Peter Klügl: >>>>> Ok, this is really strange. >>>>> >>>>> There are two annotations of type "Struct" in the CAS (variables view >>>>> say so). The first time I call cas.getAnnotationIndex(type) only one is >>>>> returned (I am using the iterable). If I "drop to frame" and call the >>>>> method again, two are returned. This behavior seems to be repeated for >>>>> every other rule in this test. >>>>> >>>>> >>>>> Could it be that I corrupted the index somehow and it recovers by itself >>>>> for a second call? >>>>> >>>>> >>>>> Some help would be really appreciated. I can provide specific steps how >>>>> to reproduce it. >>>>> >>>>> >>>>> Best, >>>>> >>>>> Peter >>>>> >>>>> >>>>> Am 07.09.2017 um 17:03 schrieb Peter Klügl: >>>>>> Hi, >>>>>> >>>>>> >>>>>> I finally set up some ruta-v3 version (right now for testing the rc). >>>>>> One test is failing caused by some strange inconsistent matching >>>>>> behavior. >>>>>> >>>>>> >>>>>> ... investigating ... >>>>>> >>>>>> >>>>>> Best, >>>>>> >>>>>> >>>>>> Peter >>>>>> >>>>>> >>>>>> PS: I put it in the uv3 folder if that's ok. >>>>>> >>>>>> >>>>>> Am 06.09.2017 um 15:41 schrieb Marshall Schor: >>>>>>> Here's RC2 for uimaj-sdk 3.0.0-beta. >>>>>>> >>>>>>> There are many fixes and improvements since the first rc on 27 April >>>>>>> 2017, due >>>>>>> to much testing. >>>>>>> >>>>>>> List of changes: >>>>>>> https://issues.apache.org/jira/browse/UIMA/fixforversion/12339590 >>>>>>> 36 new Jiras (out of 51) since rc1; to see, sort by key and looke at >>>>>>> UIMA-5407 >>>>>>> and newer. >>>>>>> >>>>>>> The v3 users guide has many updates and corrections. >>>>>>> >>>>>>> Maven artifacts: >>>>>>> https://repository.apache.org/content/repositories/orgapacheuima-1154 >>>>>>> >>>>>>> Source and binary zip/tar staged to: >>>>>>> https://dist.apache.org/repos/dist/dev/uima/uimaj/3.0.0-beta-rc2/artifacts/ >>>>>>> >>>>>>> Eclipse update site (no need to download, just use this as the link in >>>>>>> Eclipse's >>>>>>> install): >>>>>>> https://dist.apache.org/repos/dist/dev/uima/uimaj/3.0.0-beta-rc2/uimaj-v3-pre-production/ >>>>>>> >>>>>>> SVN tag: >>>>>>> https://svn.apache.org/repos/asf/uima/uv3/uimaj-v3/tags/uimaj-3.0.0-beta/ >>>>>>> >>>>>>> Please vote on release: >>>>>>> >>>>>>> [ ] +1 OK to release >>>>>>> [ ] 0 Don't care >>>>>>> [ ] -1 Not OK to release, because ... >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> -Marshall >>>>>>>
