pub struct SVMLight;Expand description
The default implementation of SVMLight parsing is based on the SVM-light format.
The format is as follows:
Implementations§
Source§impl SVMLight
impl SVMLight
Sourcepub fn load_ranklist(buffer: &str) -> Result<RankList, LtrError>
pub fn load_ranklist(buffer: &str) -> Result<RankList, LtrError>
Load a RankList from a SVM-Light buffer.
Notice that this method DOES NOT check whether the RankList has
different query ids. If you’re not sure, use the load_dataset method.
The format is as follows:
§Arguments
buffer- The buffer containing the SVMLight formatted rank list.
§Returns
A RankList with the data loaded from the buffer.
§Errors
If the buffer is not in the correct format, an error is returned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SVMLight
impl RefUnwindSafe for SVMLight
impl Send for SVMLight
impl Sync for SVMLight
impl Unpin for SVMLight
impl UnwindSafe for SVMLight
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more