feat: disable image_ocr by default in text processing stores (#149)
This commit is contained in:
parent
9dcdb70508
commit
f93b60512f
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { devtools } from 'zustand/middleware';
|
import { devtools } from 'zustand/middleware';
|
||||||
import { create } from 'zustand';
|
import { create } from 'zustand';
|
||||||
import { merge } from 'lodash-es';
|
import { merge } from 'lodash-es';
|
||||||
|
|
@ -49,7 +49,7 @@ const getDefaultTextLocalAddUpdateState: () => UploadTextLocalAddUpdateState =
|
||||||
parsing_type: ParsingType.AccurateParsing,
|
parsing_type: ParsingType.AccurateParsing,
|
||||||
image_extraction: true,
|
image_extraction: true,
|
||||||
table_extraction: true,
|
table_extraction: true,
|
||||||
image_ocr: true,
|
image_ocr: false,
|
||||||
},
|
},
|
||||||
indexStrategy: {},
|
indexStrategy: {},
|
||||||
filterStrategy: [],
|
filterStrategy: [],
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { devtools } from 'zustand/middleware';
|
import { devtools } from 'zustand/middleware';
|
||||||
import { create } from 'zustand';
|
import { create } from 'zustand';
|
||||||
import { merge } from 'lodash-es';
|
import { merge } from 'lodash-es';
|
||||||
|
|
@ -48,7 +48,7 @@ const getDefaultTextLocalResegmentState: () => UploadTextLocalResegmentState =
|
||||||
parsing_type: ParsingType.AccurateParsing,
|
parsing_type: ParsingType.AccurateParsing,
|
||||||
image_extraction: true,
|
image_extraction: true,
|
||||||
table_extraction: true,
|
table_extraction: true,
|
||||||
image_ocr: true,
|
image_ocr: false,
|
||||||
},
|
},
|
||||||
indexStrategy: {},
|
indexStrategy: {},
|
||||||
filterStrategy: [],
|
filterStrategy: [],
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { devtools } from 'zustand/middleware';
|
import { devtools } from 'zustand/middleware';
|
||||||
import { create } from 'zustand';
|
import { create } from 'zustand';
|
||||||
import { merge } from 'lodash-es';
|
import { merge } from 'lodash-es';
|
||||||
|
|
@ -36,7 +36,7 @@ const getDefaultTextResegmentState: () => UploadTextResegmentState = () => ({
|
||||||
parsingStrategy: {
|
parsingStrategy: {
|
||||||
parsing_type: ParsingType.AccurateParsing,
|
parsing_type: ParsingType.AccurateParsing,
|
||||||
image_extraction: true,
|
image_extraction: true,
|
||||||
image_ocr: true,
|
image_ocr: false,
|
||||||
table_extraction: true,
|
table_extraction: true,
|
||||||
},
|
},
|
||||||
filterStrategy: [],
|
filterStrategy: [],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue