Lifting Factor Graphs with Some Unknown Factors