Uploaded image for project: 'cTAKES'
  1. cTAKES
  2. CTAKES-265

isDuplicate iterates over set

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      The private method isDuplicate() in DictionaryLookupAnnotator is used to filter out duplicates from its lookups. It does so by keeping a Set object full of objects its seen before, and then does a lookup by manually iterating over all the elements. I don't see any reason why it shouldn't just call the contains() method of Set, which I do not believe could possibly be slower. Probably much faster in fact. Any thoughts or suggestions?

      Attachments

        Activity

          People

            Unassigned Unassigned
            tmill Tim Miller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: