Identifying patterns in rare earth element patents based on text and data mining