Class BrownCluster

    • Constructor Detail

      • BrownCluster

        public BrownCluster​(InputStream in)
                     throws IOException
        Generates the token to cluster map from Brown cluster an InputStream.

        Note: we only add those tokens with frequency bigger than 5.

        Parameters:
        in - A valid, open InputStream to read from.
        Throws:
        IOException - the io exception
    • Method Detail

      • lookupToken

        public String lookupToken​(String string)
        Check if a token is in the Brown:paths, token map.
        Parameters:
        string - the token to look-up
        Returns:
        the brown class if such token is in the brown cluster map
      • getArtifactSerializerClass

        public Class<?> getArtifactSerializerClass()
        Description copied from interface: SerializableArtifact
        Retrieves the class which can serialize and recreate this artifact.

        Note: The serializer class must have a public zero argument constructor or an exception is thrown during model serialization/loading.

        Specified by:
        getArtifactSerializerClass in interface SerializableArtifact
        Returns:
        The corresponding ArtifactSerializer class.