Class CompositePatternResolver

    • Constructor Detail

      • CompositePatternResolver

        public CompositePatternResolver()
    • Method Detail

      • getName

        public String getName()
      • isEligible

        public abstract String isEligible​(String geneName)

        Checks the gene name for eligibility with regards to the original gene name string.

        This step should return true in doubt but false when it is clear that the given mention cannot be a composite handled by the respective subclass. This is done to reduce unnecessary composite tagging time.

        Parameters:
        geneName - The original gene name string.
        Returns:
        true if this mention should tagged for composite tokens or false otherwise.
      • matches

        public abstract String matches​(String tagging)

        Requires the completed composite tagging via FlairCompositeMentionTagger and returns true if the respective subclass handles the given case.

        Parameters:
        tagging - The gene name composite tagging result.
        Returns:
        Whether or not the given tagging is handled.