HashFormatHandler

class ramose.HashFormatHandler[source]

Bases: object

This class creates an object capable to read files stored in Hash Format (see https://github.com/opencitations/ramose#Hashformat-configuration-file). A Hash Format file (.hf) is a specification file that includes information structured using the following syntax:

` #<field_name_1> <field_value_1> #<field_name_1> <field_value_2> #<field_name_3> <field_value_3> [...] #<field_name_n> <field_value_n> `

read(file_path)[source]

This method takes in input a path of a file containing a document specified in Hash Format, and returns its representation as list of dictionaries.